|
@@ -3098,6 +3098,7 @@ Loop:
|
|
|
// @Param TxtType query int true "类型0全部,1权益,2ficc"
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param LastViewTime query string true "最近一次的阅读时间,没有的话,那就是获取最新数据"
|
|
|
+// @Param CompanyId query int true "客户id"
|
|
|
// @Success 200 {object} company.ViewReportListResp
|
|
|
// @router /view/report/list [get]
|
|
|
func (this *CompanyUserController) ViewReportList() {
|
|
@@ -3117,7 +3118,8 @@ func (this *CompanyUserController) ViewReportList() {
|
|
|
txtType, _ := this.GetInt("TxtType")
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
lastViewTime := this.GetString("LastViewTime")
|
|
|
- if userId <= 0 {
|
|
|
+ companyId, _ := this.GetInt("CompanyId")
|
|
|
+ if userId <= 0 && companyId <= 0 {
|
|
|
br.Msg = "参数错误"
|
|
|
return
|
|
|
}
|
|
@@ -3125,7 +3127,9 @@ func (this *CompanyUserController) ViewReportList() {
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
|
}
|
|
|
+ if userId > 0 {
|
|
|
|
|
|
+ }
|
|
|
item, err := models.GetWxUserByUserId(userId)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|