Browse Source

条件不包含共享客户时不查询

zwxi 9 months ago
parent
commit
60f2f99006
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/company.go

+ 2 - 2
controllers/company.go

@@ -803,8 +803,8 @@ func (this *CompanyController) List() {
 								condition += ` AND (b.seller_id = ? OR (b.share_seller_id = ? AND b.is_share = 1)) `
 								pars = append(pars, sysUser.AdminId, sysUser.AdminId)
 							} else {
-								condition += ` AND (b.seller_id = ? OR (b.share_seller_id = ? AND b.is_share = 1)) `
-								pars = append(pars, sysUser.AdminId, sysUser.AdminId)
+								condition += ` AND b.seller_id = ? `
+								pars = append(pars, sysUser.AdminId)
 							}
 						}