zwxi 1 年之前
父节点
当前提交
85ac4a3754
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controller/census/seller.go

+ 3 - 3
controller/census/seller.go

@@ -560,7 +560,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 			amountPars := make([]interface{}, 0)
 			amountPars = append(amountPars, summaryIds)
 			if len(groupIds) > 0 {
-				amountCond += ` AND AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
+				amountCond += ` AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
 				amountPars = append(historyPars, groupIds)
 			}
 
@@ -645,7 +645,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 			amountPars := make([]interface{}, 0)
 			amountPars = append(amountPars, summaryIds)
 			if len(groupIds) > 0 {
-				amountCond += ` AND AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
+				amountCond += ` AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
 				amountPars = append(historyPars, groupIds)
 			}
 			//if req.SellerIds != "" {
@@ -743,7 +743,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 			amountPars := make([]interface{}, 0)
 			amountPars = append(amountPars, summaryIds)
 			if len(groupIds) > 0 {
-				amountCond += ` AND AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
+				amountCond += ` AND IF ( a.invoice_id = 0, d.seller_group_id, b.seller_group_id ) IN (?) `
 				amountPars = append(historyPars, groupIds)
 			}
 			//if req.SellerIds != "" {