zwxi 1 ano atrás
pai
commit
0ad99e0970
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      controller/census/seller.go

+ 2 - 2
controller/census/seller.go

@@ -567,8 +567,8 @@ 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 )`
-				amountCond += `OR ( d.seller_id IN ? AND  a.payment_id <> 0 AND a.invoice_id = 0 )) `
+				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")) `
 				amountPars = append(amountPars, sellerIds, sellerIds)
 			} else {
 				amountCond += ` AND ((a.invoice_id <> 0 )`