From 0d243e7f5dc593cdc6e0608bb52cd635f8fc6982 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 19 九月 2025 11:59:44 +0800
Subject: [PATCH] 新需求
---
ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java | 33 +++++++++++++++++++++++++++++----
1 files changed, 29 insertions(+), 4 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 66a097f..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
@@ -1,15 +1,15 @@
package com.ycl.platform.controller;
import com.ycl.platform.domain.query.HomeQuery;
-import com.ycl.platform.service.ITMonitorService;
-import com.ycl.platform.service.WorkOrderService;
-import com.ycl.platform.service.YwPointService;
-import com.ycl.platform.service.YwUnitService;
+import com.ycl.platform.service.*;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.AjaxResult;
+
+import java.lang.reflect.InvocationTargetException;
+import java.text.ParseException;
/**
* @author gonghl
@@ -25,6 +25,7 @@
private final ITMonitorService tMonitorService;
private final WorkOrderService workOrderService;
private final YwPointService ywPointService;
+ private final ICheckScoreService checkScoreService;
@GetMapping("/ywUnitList")
public AjaxResult ywUnitList() {
@@ -34,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")
@@ -51,4 +66,14 @@
return AjaxResult.success(ywUnitService.ywUnitCount());
}
+ @GetMapping("/checkScore")
+ public AjaxResult checkScore() {
+ return AjaxResult.success(checkScoreService.home());
+ }
+
+ @GetMapping("/calculate")
+ public AjaxResult calculate(String category) {
+ return AjaxResult.success(checkScoreService.calculate(category));
+ }
+
}
--
Gitblit v1.8.0