From 6091a9cac0ef3236bd05137a5fae9a9cf1913ed4 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期一, 29 四月 2024 16:03:21 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java | 38 ++++++++++++++------------------------ 1 files changed, 14 insertions(+), 24 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 9634f19..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 @@ -2,11 +2,11 @@ import com.mes.edgstoragecage.service.EdgStorageCageDetailsService; import com.mes.edgstoragecage.service.EdgStorageCageService; -import com.mes.edgstoragecage.service.impl.EdgStorageCageDetailsServiceImpl; -import com.mes.edgstoragecage.service.impl.EdgStorageCageServiceImpl; -import com.mes.taskcache.service.HangzhoumesService; -import com.mes.taskcache.service.PpService; +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.*; @@ -22,6 +22,7 @@ * @author zhoush * @since 2024-04-07 */ +@Api(tags = "璇嗗埆鏄剧ず") @RestController @RequestMapping("/taskCache") public class TaskCacheController { @@ -30,30 +31,25 @@ private EdgStorageCageDetailsService edgStorageCageDetailsService; @Autowired - private HangzhoumesService hangzhoumesService; + private EdgStorageCageService edgStorageCageService; + @Autowired + private TaskCacheService taskCacheService; @ApiOperation("鏌ヨ鍒囧壊鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙� 鍙傛暟(宸ョ▼鍙�)") @PostMapping("/cutTerritory") @ResponseBody public Result cutTerritory(String current) { - List<Map> h = edgStorageCageDetailsService.selectCurrentCutTerritory(current); + List<Map<String, Object>> h = edgStorageCageDetailsService.selectCurrentCutTerritory(current); return Result.build(200,"鎴愬姛",h); } @ApiOperation("璇嗗埆鏄剧ず 褰撳墠鐗堝浘 鍙傛暟()") @PostMapping("/currentCutTerritory") @ResponseBody public Result currentCutTerritory() { - List<Map> h = edgStorageCageDetailsService.selectCutTerritory(); + List<Map<String, Object>> h = edgStorageCageDetailsService.selectCutTerritory(); return Result.build(200,"鎴愬姛",h); } - @ApiOperation("璇嗗埆鏄剧ず 鐗瑰畾鐗堝浘 鍙傛暟(鐗堝浘缂栧彿)") - @PostMapping("/selectCutTerritory") - @ResponseBody - public Result selectCutTerritory(String TerritoryId) { - List<Map> h = edgStorageCageDetailsService.selectCutTerritory(); - return Result.build(200,"鎴愬姛",h); - } - @ApiOperation("璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D,鍔熻兘[0:鐮存崯锛�1锛氭嬁璧癩锛�") + @ApiOperation("璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D,鍔熻兘[200锛氭嬁璧帮紝201:鐮存崯]锛�") @PostMapping("/identControls") @ResponseBody public Result identControls(@RequestParam(name = "identId", required = false) String identId,@RequestParam(name = "controlsId", required = false) int controlsId) { @@ -61,18 +57,12 @@ boolean issucess = edgStorageCageDetailsService.identWorn(identId,controlsId); return Result.build(200,"鎴愬姛",issucess); } - @ApiOperation("鏌ヨ绗煎唴淇℃伅 鍙傛暟()") - @PostMapping("/selectCageInfo") - @ResponseBody - public Result selectCageInfo() { - List<Map> h = hangzhoumesService.SelectCageInfo(); - return Result.build(200,"鎴愬姛",h); - } + @ApiOperation("纾ㄨ竟浠诲姟 鍙傛暟()") @PostMapping("/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