浏览代码

Merge branch 'fix_report_view_list' into debug

Roc 4 月之前
父节点
当前提交
0b1104d947
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/company_user.go

+ 1 - 1
controllers/company_user.go

@@ -3341,7 +3341,7 @@ func (this *CompanyUserController) ViewReportList() {
 			secondCondition += `AND create_time <  ?`
 			secondPars = append(secondPars, lastViewTime)
 
-			_, items, err = obj.GetViewReportList(lastViewTimeT.Year(), secondCondition, secondPars, int(total)-pageSize)
+			_, items, err = obj.GetViewReportList(lastViewTimeT.Year(), secondCondition, secondPars, pageSize-int(total))
 			if err != nil {
 				br.Msg = "获取失败"
 				br.Msg = "获取失败,Err:" + err.Error()