|
@@ -1107,7 +1107,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]
|
|
|
//企业名称
|
|
@@ -1261,6 +1261,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)
|
|
@@ -1317,7 +1321,6 @@ func (this *CompanyUserController) List() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- userHaveMoveMap := services.GetWxUserHaveMoveMap(mobilesSlice) // 处理用户是否移动过按钮回显
|
|
|
|
|
|
for i := 0; i < lenList; i++ {
|
|
|
item := list[i]
|
|
@@ -1337,9 +1340,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)
|
|
|
}
|
|
|
}
|