浏览代码

Merge branch 'crm_optimize_257_1029@guomengyuan' into debug

gmy 2 月之前
父节点
当前提交
ca04f644ae
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      controllers/eta_trial.go

+ 5 - 1
controllers/eta_trial.go

@@ -70,10 +70,14 @@ func (this *ETATrialController) List() {
 	var condition string
 	var pars []interface{}
 
-	if isOnlyMe {
+	if sysUser.RoleTypeCode != "admin" && sysUser.RoleTypeCode != "ficc_admin" {
+		condition += ` AND seller_id = ? `
+		pars = append(pars, sysUser.AdminId)
+	} else if isOnlyMe {
 		condition += ` AND seller_id = ? `
 		pars = append(pars, sysUser.AdminId)
 	}
+
 	if keyWord != "" {
 		condition += ` AND (user_name LIKE '%` + keyWord + `%' OR company_name LIKE '%` + keyWord + `%' ) `
 	}