|
@@ -156,7 +156,8 @@ func (this *DocumentManageController) DocumentReportList() {
|
|
|
if currentIndex <= 0 {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
- documentReportPage, err := document_manage_service.DocumentReportList(documentType, chartPermissionIdList, classifyIdList, keyword, orderField, orderType, currentIndex, pageSize)
|
|
|
+ startSize := utils.StartIndex(currentIndex, pageSize)
|
|
|
+ documentReportPage, err := document_manage_service.DocumentReportList(documentType, chartPermissionIdList, classifyIdList, keyword, orderField, orderType, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取报告列表失败"
|
|
|
br.ErrMsg = "获取报告列表失败,Err:" + err.Error()
|
|
@@ -211,7 +212,8 @@ func (this *DocumentManageController) RuiSiReportList() {
|
|
|
if currentIndex <= 0 {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
- RuiSiReportPage, err := document_manage_service.RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird, chartPermissionIdList, keyword, orderField, orderType, currentIndex, pageSize)
|
|
|
+ startSize := utils.StartIndex(currentIndex, pageSize)
|
|
|
+ RuiSiReportPage, err := document_manage_service.RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird, chartPermissionIdList, keyword, orderField, orderType, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取报告列表失败"
|
|
|
br.ErrMsg = "获取报告列表失败,Err:" + err.Error()
|