From 3e9a6da99aae968123ee7bca352fc08becd7f1f2 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 29 八月 2024 17:29:21 +0800
Subject: [PATCH] 工单过程图接口更换

---
 ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java |   26 +++++++++++++++++++++++---
 1 files changed, 23 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 95a4ab3..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
@@ -1,9 +1,7 @@
 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.YwUnitService;
+import com.ycl.platform.service.*;
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -23,6 +21,8 @@
     private final YwUnitService ywUnitService;
     private final ITMonitorService tMonitorService;
     private final WorkOrderService workOrderService;
+    private final YwPointService ywPointService;
+    private final ICheckScoreService checkScoreService;
 
     @GetMapping("/ywUnitList")
     public AjaxResult ywUnitList() {
@@ -39,4 +39,24 @@
         return AjaxResult.success(workOrderService.home(monitorQuery));
     }
 
+    @GetMapping("/ywPoint")
+    public AjaxResult ywPoint() {
+        return AjaxResult.success(ywPointService.home());
+    }
+
+    @GetMapping("/ywUnitCount")
+    public AjaxResult ywUnitCount() {
+        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