|
@@ -316,6 +316,18 @@ func (this *UserController) List() {
|
|
|
UserRemindListMap := cygxService.GetCygxUserRemindListMap(userIdArr)
|
|
|
mapIsUserMaker := cygxService.GetCompanyProductIsUserMakerByCompanyIds(companyIds) //根据公司ID获取近四周之内有决策人互动的客户
|
|
|
userHaveMoveMap := services.GetWxUserHaveMoveMap(mobilesSlice) // 处理用户是否移动过按钮回显
|
|
|
+
|
|
|
+ mfyxuserRecordRegisterList, err := models.GetUserRecordRegisterByUserIdsMyfx(userIds)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败 GetUserRecordRegisterByUserIdsMyfx ,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ mfyxuserRecordRegisterMap := make(map[int]string)
|
|
|
+ for _, userRecordRegister := range mfyxuserRecordRegisterList {
|
|
|
+ //如果注册时间早于网页版的,或者网页版没有注册,就用这里的时间替换
|
|
|
+ mfyxuserRecordRegisterMap[userRecordRegister.UserId] = userRecordRegister.CreateTime.Format(utils.FormatDateTime)
|
|
|
+ }
|
|
|
for k, v := range list {
|
|
|
for _, vsplit := range splitList {
|
|
|
if vsplit.UserId == v.UserId {
|
|
@@ -342,6 +354,9 @@ func (this *UserController) List() {
|
|
|
if v.Mobile != "" {
|
|
|
v.HaveMoveButton = userHaveMoveMap[v.Mobile]
|
|
|
}
|
|
|
+ if mfyxuserRecordRegisterMap[int(v.UserId)] != "" {
|
|
|
+ list[k].MfyxIsBinding = true
|
|
|
+ }
|
|
|
}
|
|
|
for k := range list {
|
|
|
list[k].InteractionNum = list[k].HistoryNum + list[k].CountNum + list[k].IndustryFllowNum + list[k].DepartmentFollowNum + list[k].KeyWordNum + list[k].OnLineNum + list[k].OfficeNum + list[k].ChartNum + list[k].TripNum + list[k].RoadshowVideoNum + list[k].ActivityVideoNum + list[k].ActivityVoiceNum + list[k].YanxuanspecialNum
|