From 7a801ba86c24da0ebb0aabb1fee92eae497d998b Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期四, 11 四月 2024 11:00:42 +0800
Subject: [PATCH] 程序转移

---
 hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java |   67 ++++++++++++++++++++++++++++++++-
 1 files changed, 65 insertions(+), 2 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java
index cf3d9d1..84126c3 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java
@@ -1,7 +1,13 @@
 package com.mes.taskcache.controller;
 
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import com.mes.taskcache.service.HangzhoumesService;
+import com.mes.taskcache.service.PpService;
+import com.mes.utils.Result;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
 
 /**
  * <p>
@@ -15,5 +21,62 @@
 @RequestMapping("/taskCache")
 public class TaskCacheController {
 
+    @Autowired
+    private PpService ppService;
+
+    @Autowired
+    private HangzhoumesService hangzhoumesService;
+
+//    @GetMapping("/SelectTerritoryInfo") // 鏌ヨ閽㈠寲鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙�
+//    @ResponseBody
+//    public Result SelectTerritoryInfo(@RequestParam(name = "ProcessId", required = false) String ProcessId) {
+//        List<Tempered> h = ppService.selectTemperedTerritory(ProcessId);
+//        return Result.seccess(h);
+//    }
+
+    @GetMapping("/CutTerritory") // 鏌ヨ鍒囧壊鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙�
+    @ResponseBody
+    public Result CutTerritory(String ProcessId) {
+        List<Map> h = ppService.selectCutTerritory(ProcessId);
+        return Result.build(200,"鎴愬姛",h);
+    }
+
+    @GetMapping("/CurrentCutTerritory") // 璇嗗埆鏄剧ず  褰撳墠鐗堝浘
+    @ResponseBody
+    public Result CurrentCutTerritory() {
+        List<Map> h = ppService.selectCutTerritory();
+        System.out.println(h);
+        return Result.build(200,"鎴愬姛",h);
+    }
+
+    @GetMapping("/SelectCutTerritory") // 璇嗗埆鏄剧ず  鐗瑰畾鐗堝浘
+    @ResponseBody
+    public Result SelectCutTerritory(String TerritoryId) {
+        List<Map> h = ppService.selectCutTerritory(TerritoryId);
+        return Result.build(200,"鎴愬姛",h);
+    }
+
+    @GetMapping("/IdentControls") //   璇嗗埆鎿嶄綔锛�   鐮存崯/鎷胯蛋     鍙傛暟锛圛D锛屽姛鑳絒0:鐮存崯锛�1锛氭嬁璧癩锛�
+    @ResponseBody
+    public Result Ident(@RequestParam(name = "IdentId", required = false) String ProcessId,@RequestParam(name = "ControlsId", required = false) String ControlsId) {
+        List<Map> h = ppService.selectCutTerritory("P24032508");
+        return Result.build(200,"鎴愬姛",h);
+    }
+
+    @GetMapping("/SelectCageInfo") // 鏌ヨ绗煎唴淇℃伅
+    @ResponseBody
+    public Result SelectCageInfo(String ProcessId) {
+        List<Map> h = hangzhoumesService.SelectCageInfo();
+        return Result.build(200,"鎴愬姛",h);
+    }
+
+
+    @GetMapping("/SelectEdgTask") //纾ㄨ竟浠诲姟
+    @ResponseBody
+    public Result SelectEdgTask(String ProcessId) {
+        List<Map> EdgTasks = hangzhoumesService.SelectEdgInfo("1");
+        return Result.build(200,"鎴愬姛",EdgTasks);
+    }
+
 }
 

--
Gitblit v1.8.0