zwxi 1 year ago
parent
commit
b250adce94
1 changed files with 1 additions and 1 deletions
  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 != "" {