Browse Source

no message

xingzai 1 year ago
parent
commit
be0a3a6f6a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      controllers/company_user.go

+ 5 - 2
controllers/company_user.go

@@ -1248,6 +1248,9 @@ func (this *CompanyUserController) List() {
 					list[i].IsChartPermissionSetting = 1
 				}
 			}
+			// 分产品阅读统计
+			list[i].YbProductViewTotal = userYbViewsMap[int(item.UserId)]
+			list[i].LastViewTimeStr = list[i].RaiLastViewTime.Format(utils.FormatDateTime)
 		}
 
 		isUserYanXuanButtonShow, err := services.CheckCompanyUserYanXuanButton(sysUser.RoleTypeCode, sysUser.Mobile)
@@ -1282,7 +1285,7 @@ func (this *CompanyUserController) List() {
 			for i := 0; i < lenList; i++ {
 				item := list[i]
 				// 分产品阅读统计
-				list[i].YbProductViewTotal = userYbViewsMap[int(item.UserId)]
+				//list[i].YbProductViewTotal = userYbViewsMap[int(item.UserId)]
 				list[i].MfyxInteractionNum = userInteractionNumMap[int(item.UserId)]
 				//权益销售查看用户研选的信息
 				if userYanxuanPermissionMap[int(item.UserId)] != nil {
@@ -1297,7 +1300,7 @@ func (this *CompanyUserController) List() {
 					list[i].MfyxIsBinding = true
 					list[i].MfyxBindingTime = mfyxuserRecordRegisterMap[int(item.UserId)]
 				}
-				list[i].LastViewTimeStr = list[i].RaiLastViewTime.Format(utils.FormatDateTime)
+				//list[i].LastViewTimeStr = list[i].RaiLastViewTime.Format(utils.FormatDateTime)
 			}
 		}
 	}