Browse Source

no message

xingzai 1 year ago
parent
commit
3f6870afa7
1 changed files with 8 additions and 1 deletions
  1. 8 1
      controllers/company_user.go

+ 8 - 1
controllers/company_user.go

@@ -1249,7 +1249,14 @@ func (this *CompanyUserController) List() {
 			}
 		}
 
-		if sysUser.DepartmentId == utils.RAI_DEPARTMENT_ID {
+		isUserYanXuanButtonShow, err := services.CheckCompanyUserYanXuanButton(sysUser.RoleTypeCode, sysUser.Mobile)
+		if err != nil {
+			br.Msg = "获取失败"
+			br.ErrMsg = "获取专项调研信息失败,Err:" + err.Error()
+			return
+		}
+
+		if isUserYanXuanButtonShow {
 			userYanxuanPermissionMap := cygxService.GetCygxUserYanxuanPermissionMapItem(userIds) // 如果是权益部门下的人,则展示研选相关的信息
 			userInteractionNumMap := cygxService.GetUserInteractionNumMap(userIds)               // 如果是权益部门下的人,展示互动量相关的信息