|
@@ -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)
|
|
|
}
|
|
|
}
|