Ver código fonte

Merge branch 'crm/crm_16.2.1' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

xingzai 6 meses atrás
pai
commit
ab893d40a2
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      controllers/company_user.go

+ 5 - 5
controllers/company_user.go

@@ -1108,7 +1108,7 @@ func (this *CompanyUserController) List() {
 		for _, v := range ybViewsList {
 			userYbViewsMap[v.UserId] = v.VisitCount
 		}
-
+		userHaveMoveMap := services.GetWxUserHaveMoveMap(mobilesSlice) // 处理用户是否移动过按钮回显
 		for i := 0; i < lenList; i++ {
 			item := list[i]
 			//企业名称
@@ -1262,6 +1262,10 @@ func (this *CompanyUserController) List() {
 			// 分产品阅读统计
 			list[i].YbProductViewTotal = userYbViewsMap[int(item.UserId)]
 			//list[i].LastViewTimeStr = list[i].RaiLastViewTime.Format(utils.FormatDateTime)
+
+			if item.Mobile != "" {
+				list[i].HaveMoveButton = userHaveMoveMap[item.Mobile]
+			}
 		}
 
 		isUserYanXuanButtonShow, err := services.CheckCompanyUserYanXuanButton(sysUser.RoleTypeCode, sysUser.Mobile)
@@ -1318,7 +1322,6 @@ func (this *CompanyUserController) List() {
 					}
 				}
 			}
-			userHaveMoveMap := services.GetWxUserHaveMoveMap(mobilesSlice) // 处理用户是否移动过按钮回显
 
 			for i := 0; i < lenList; i++ {
 				item := list[i]
@@ -1338,9 +1341,6 @@ func (this *CompanyUserController) List() {
 					list[i].MfyxIsBinding = true
 					list[i].MfyxBindingTime = mfyxuserRecordRegisterMap[int(item.UserId)]
 				}
-				if item.Mobile != "" {
-					list[i].HaveMoveButton = userHaveMoveMap[item.Mobile]
-				}
 				//list[i].LastViewTimeStr = list[i].RaiLastViewTime.Format(utils.FormatDateTime)
 			}
 		}