|
@@ -677,7 +677,7 @@ func (this *UserController) TableList() {
|
|
|
{PermissionName: "搜索", Source: 7, TotalNum: countDetail.KeyWordNum},
|
|
|
{PermissionName: "音视频播放", Source: 9, TotalNum: countDetail.RoadshowVideoNum + countDetail.ActivityVideoNum + countDetail.ActivityVoiceNum},
|
|
|
{PermissionName: "首页标签点击", Source: 10, TotalNum: countDetail.TagNum},
|
|
|
- {PermissionName: "交流反馈", Source: 14, TotalNum: countDetail.TagNum}}
|
|
|
+ {PermissionName: "交流反馈", Source: 14, TotalNum: countDetail.FeedbackNum}}
|
|
|
resp.List = List
|
|
|
} else {
|
|
|
countDetail, err := cygx.GetUserInteractionTableCountByYanXuan(userId)
|
|
@@ -777,25 +777,6 @@ func (this *UserController) TableDetail() {
|
|
|
var NoMeetingNum int
|
|
|
var list []*cygx.UserInteraction
|
|
|
|
|
|
- //listTable := []*cygx.CygxUserTableRep{{PermissionName: "报告阅读列表", Source: 1, TotalNum: 10},
|
|
|
- // {PermissionName: "活动互动记录", Source: 2, TotalNum: 10},
|
|
|
- // {PermissionName: "收藏的报告", Source: 3, TotalNum: 10},
|
|
|
- // {PermissionName: "收藏图表", Source: 4, TotalNum: 10},
|
|
|
- // {PermissionName: "关注的产业", Source: 5, TotalNum: 10},
|
|
|
- // {PermissionName: "关注的作者", Source: 6, TotalNum: 10},
|
|
|
- // {PermissionName: "搜索", Source: 7, TotalNum: 10},
|
|
|
- // {PermissionName: "专项调研", Source: 8, TotalNum: 10},
|
|
|
- // {PermissionName: "音视频播放", Source: 9, TotalNum: 10},
|
|
|
- // {PermissionName: "首页标签点击", Source: 10, TotalNum: 10}}
|
|
|
- //for _, v := range listTable {
|
|
|
- // if v.Source == source {
|
|
|
- // checkSource = true
|
|
|
- // }
|
|
|
- //}
|
|
|
- ////默认类型1
|
|
|
- //if !checkSource {
|
|
|
- // source = 1
|
|
|
- //}
|
|
|
var total int
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
@@ -1233,6 +1214,26 @@ func (this *UserController) TableDetail() {
|
|
|
list[k].HttpUrl = utils.CYGX_MFYX_URL + "/column/view/" + strconv.Itoa(v.DepartmentId)
|
|
|
}
|
|
|
}
|
|
|
+ } else if source == 14 { //交流反馈
|
|
|
+ if startDate != "" {
|
|
|
+ startDate += " 00:00:00"
|
|
|
+ condition += ` AND r.create_time >= '` + startDate + `' `
|
|
|
+ }
|
|
|
+ if endDate != "" {
|
|
|
+ endDate += " 23:59:59"
|
|
|
+ condition += ` AND r.create_time <= '` + endDate + `' `
|
|
|
+ }
|
|
|
+ if wxUser.Mobile == "" {
|
|
|
+ wxUser.Mobile = wxUser.Email
|
|
|
+ }
|
|
|
+ condition += " AND (r.mobile = '" + wxUser.Mobile + "' OR r.email = '" + wxUser.Mobile + "') "
|
|
|
+ total, list, err = cygx.GetCygxUserFeedback(condition, startSize, pageSize)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取用户阅读记录,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp := new(cygx.UserInteractionListResp)
|