Browse Source

Merge branch 'seller_census'

zwxi 1 year ago
parent
commit
800f7a8d3f
1 changed files with 1 additions and 1 deletions
  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 )`