From b365a0879edc787655b908b0dbb65b5e966bb23b Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期二, 07 五月 2024 09:03:08 +0800
Subject: [PATCH] 公共yml文件 ip 改回10.153.19.150
---
hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java | 72 +++++++++++++++---------------------
1 files changed, 30 insertions(+), 42 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 84126c3..85e1ef5 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,8 +1,13 @@
package com.mes.taskcache.controller;
-import com.mes.taskcache.service.HangzhoumesService;
-import com.mes.taskcache.service.PpService;
+import com.mes.edgstoragecage.service.EdgStorageCageDetailsService;
+import com.mes.edgstoragecage.service.EdgStorageCageService;
+import com.mes.pp.entity.OptimizeDetail;
+import com.mes.taskcache.entity.TaskCache;
+import com.mes.taskcache.service.TaskCacheService;
import com.mes.utils.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -17,64 +22,47 @@
* @author zhoush
* @since 2024-04-07
*/
+@Api(tags = "璇嗗埆鏄剧ず")
@RestController
@RequestMapping("/taskCache")
public class TaskCacheController {
@Autowired
- private PpService ppService;
+ private EdgStorageCageDetailsService edgStorageCageDetailsService;
@Autowired
- private HangzhoumesService hangzhoumesService;
+ private EdgStorageCageService edgStorageCageService;
+ @Autowired
+ private TaskCacheService taskCacheService;
-// @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") // 鏌ヨ鍒囧壊鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙�
+ @ApiOperation("鏌ヨ鍒囧壊鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙� 鍙傛暟(宸ョ▼鍙�)")
+ @PostMapping("/cutTerritory")
@ResponseBody
- public Result CutTerritory(String ProcessId) {
- List<Map> h = ppService.selectCutTerritory(ProcessId);
+ public Result cutTerritory(String current) {
+ List<Map<String, Object>> h = edgStorageCageDetailsService.selectCurrentCutTerritory(current);
return Result.build(200,"鎴愬姛",h);
}
-
- @GetMapping("/CurrentCutTerritory") // 璇嗗埆鏄剧ず 褰撳墠鐗堝浘
+ @ApiOperation("璇嗗埆鏄剧ず 褰撳墠鐗堝浘 鍙傛暟()")
+ @PostMapping("/currentCutTerritory")
@ResponseBody
- public Result CurrentCutTerritory() {
- List<Map> h = ppService.selectCutTerritory();
- System.out.println(h);
+ public Result currentCutTerritory() {
+ List<Map<String, Object>> h = edgStorageCageDetailsService.selectCutTerritory();
return Result.build(200,"鎴愬姛",h);
}
-
- @GetMapping("/SelectCutTerritory") // 璇嗗埆鏄剧ず 鐗瑰畾鐗堝浘
+ @ApiOperation("璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D,鍔熻兘[200锛氭嬁璧帮紝201:鐮存崯]锛�")
+ @PostMapping("/identControls")
@ResponseBody
- public Result SelectCutTerritory(String TerritoryId) {
- List<Map> h = ppService.selectCutTerritory(TerritoryId);
- return Result.build(200,"鎴愬姛",h);
+ public Result identControls(@RequestParam(name = "identId", required = false) String identId,@RequestParam(name = "controlsId", required = false) int controlsId) {
+
+ boolean issucess = edgStorageCageDetailsService.identWorn(identId,controlsId);
+ return Result.build(200,"鎴愬姛",issucess);
}
- @GetMapping("/IdentControls") // 璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D锛屽姛鑳絒0:鐮存崯锛�1锛氭嬁璧癩锛�
+ @ApiOperation("纾ㄨ竟浠诲姟 鍙傛暟()")
+ @PostMapping("/selectEdgTask")
@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");
+ public Result selectEdgTask(String line) {
+ List<TaskCache> EdgTasks = taskCacheService.selectEdgInfo(line);
return Result.build(200,"鎴愬姛",EdgTasks);
}
--
Gitblit v1.8.0