From 053d17a73ec3dd7a2872cb42a963496f15983a5b Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 20 八月 2024 17:47:41 +0800
Subject: [PATCH] 平台管理优化
---
ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java b/ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java
index ab3c6ce..dd9e475 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java
@@ -22,7 +22,7 @@
private final ITMonitorService tMonitorService;
private final WorkOrderService workOrderService;
private final YwPointService ywPointService;
- private final IContractScoreService contractScoreService;
+ private final ICheckScoreService checkScoreService;
@GetMapping("/ywUnitList")
public AjaxResult ywUnitList() {
@@ -49,9 +49,14 @@
return AjaxResult.success(ywUnitService.ywUnitCount());
}
+ @GetMapping("/checkScore")
+ public AjaxResult checkScore() {
+ return AjaxResult.success(checkScoreService.home());
+ }
+
@GetMapping("/calculate")
- public AjaxResult calculate() {
- return AjaxResult.success(contractScoreService.calculate());
+ public AjaxResult calculate(String category) {
+ return AjaxResult.success(checkScoreService.calculate(category));
}
}
--
Gitblit v1.8.0