Browse Source

fix:跨年的报告搜索

Roc 3 months ago
parent
commit
d55b956ecd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/company_user.go

+ 1 - 1
controllers/company_user.go

@@ -3305,7 +3305,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()