zwxi před 1 rokem
rodič
revize
b250adce94
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      controller/census/seller.go

+ 1 - 1
controller/census/seller.go

@@ -823,7 +823,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 	adminPars := make([]interface{}, 0)
 	adminCond := ` 1=1 `
 	if req.SellerType != 0 {
-		adminCond = ` AND department_id = ? `
+		adminCond += ` AND department_id = ? `
 		adminPars = append(adminPars, departmentId)
 	}
 	if req.SellerIds != "" {