From a4a904acc5f4de80d30eafe19dd97f3cc8f56a0b Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 29 九月 2025 17:17:34 +0800
Subject: [PATCH] 新问题 25-9-28
---
ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java | 28 +++++++++++++++++++++++++---
1 files changed, 25 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..ad4c749 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
@@ -8,6 +8,9 @@
import org.springframework.web.bind.annotation.RestController;
import pojo.AjaxResult;
+import java.lang.reflect.InvocationTargetException;
+import java.text.ParseException;
+
/**
* @author gonghl
* @since 2024/8/1 涓嬪崍 5:41
@@ -22,7 +25,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() {
@@ -32,6 +35,20 @@
@GetMapping("/monitor")
public AjaxResult monitor(HomeQuery monitorQuery) {
return AjaxResult.success(tMonitorService.home(monitorQuery));
+ }
+
+ @GetMapping("/video")
+ public AjaxResult videoHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
+ return AjaxResult.success(tMonitorService.videoHome(monitorQuery));
+ }
+
+ @GetMapping("/car")
+ public AjaxResult carHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
+ return AjaxResult.success(tMonitorService.carHome(monitorQuery));
+ }
+ @GetMapping("/face")
+ public AjaxResult faceHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
+ return AjaxResult.success(tMonitorService.faceHome(monitorQuery));
}
@GetMapping("/workOrder")
@@ -49,9 +66,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