zwxi 1 an în urmă
părinte
comite
85ac4a3754
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  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 != "" {