Browse Source

KPI展示页面后端代码问题修改

hlf 1 year ago
parent
commit
5ae8cde80c

+ 1 - 0
web/runeconomy-xk/src/main/java/com/gyee/jinneng_kpi/controller/OperationEvaluateController.java

@@ -49,6 +49,7 @@ public class OperationEvaluateController {
             @RequestParam(value = "month", required = false) Integer month) {
         Page<OperationEvaluate> page = new Page<>(pageNum, pageSize);
         IPage<OperationEvaluate> list = operationEvaluateService.pageList(page, years, month);
+        list.setTotal(list.getRecords().size());
         List<OperationEvaluate> operationEvaluateList = list.getRecords();
         for (OperationEvaluate operationEvaluate : operationEvaluateList) {
             double count = 0;

+ 1 - 0
web/runeconomy-xk/src/main/java/com/gyee/jinneng_kpi/controller/OverhaulEvaluateController.java

@@ -49,6 +49,7 @@ public class OverhaulEvaluateController {
             @RequestParam(value = "month", required = false) Integer month) {
         Page<OverhaulEvaluate> page = new Page<>(pageNum, pageSize);
         IPage<OverhaulEvaluate> list = overhaulEvaluateService.pageList(page, years, month);
+        list.setTotal(list.getRecords().size());
         List<OverhaulEvaluate> overhaulEvaluateList = list.getRecords();
         for (OverhaulEvaluate overhaulEvaluate : overhaulEvaluateList) {
             double count = 0;

+ 1 - 0
web/runeconomy-xk/src/main/java/com/gyee/jinneng_kpi/controller/SpSynthesisEvaluateController.java

@@ -49,6 +49,7 @@ public class SpSynthesisEvaluateController {
             @RequestParam(value = "month", required = false) Integer month) {
         Page<SpSynthesisEvaluate> page = new Page<>(pageNum, pageSize);
         IPage<SpSynthesisEvaluate> list = spSynthesisEvaluateService.pageList(page, years, month);
+        list.setTotal(list.getRecords().size());
         List<SpSynthesisEvaluate> spSynthesisEvaluateList = list.getRecords();
         for (SpSynthesisEvaluate spSynthesisEvaluate : spSynthesisEvaluateList) {
             double count = 0;

+ 1 - 0
web/runeconomy-xk/src/main/java/com/gyee/jinneng_kpi/controller/WfSynthesisEvaluateController.java

@@ -49,6 +49,7 @@ public class WfSynthesisEvaluateController {
             @RequestParam(value = "month", required = false) Integer month) {
         Page<WfSynthesisEvaluate> page = new Page<>(pageNum, pageSize);
         IPage<WfSynthesisEvaluate> list = wfSynthesisEvaluateService.pageList(page, years, month);
+        list.setTotal(list.getRecords().size());
         List<WfSynthesisEvaluate> wfSynthesisEvaluateList = list.getRecords();
         for (WfSynthesisEvaluate wfSynthesisEvaluate : wfSynthesisEvaluateList) {
             double count = 0;