zwxi 1 년 전
부모
커밋
91dea3c11b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controller/census/seller.go

+ 1 - 1
controller/census/seller.go

@@ -568,7 +568,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 			if req.SellerIds != "" {
 				sellerIds := strings.Split(req.SellerIds, ",")
 				amountCond += ` AND (( b.seller_id IN ? AND a.invoice_id <> 0 AND b.invoice_time > "2023-04-01")`
-				amountCond += `OR ( d.seller_id IN ? AND  a.payment_id <> 0 AND a.invoice_id = 0 AND b.invoice_time > "2023-04-01")) `
+				amountCond += `OR ( d.seller_id IN ? AND  a.payment_id <> 0 AND a.invoice_id = 0 AND d.invoice_time > "2023-04-01")) `
 				amountPars = append(amountPars, sellerIds, sellerIds)
 			} else {
 				amountCond += ` AND ((a.invoice_id <> 0 )`