From d12ca7c9d0635eec17d1dc03ed085eeac7eb248f Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期六, 10 八月 2024 14:11:21 +0800 Subject: [PATCH] 1、磨边前破损处理:识别仅将数据存入破损表,不做其他处理 2、磨边队列破损:将数据加入破损表,将状态改为破损 --- hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/taskcache/controller/TaskCacheController.java | 31 +++++++++++++++---------------- 1 files changed, 15 insertions(+), 16 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 e4bbd40..e48a6db 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,7 @@ package com.mes.taskcache.controller; +import com.mes.edgglasstask.entity.request.IdentWornRequest; import com.mes.edgstoragecage.service.EdgStorageCageDetailsService; -import com.mes.edgstoragecage.service.EdgStorageCageService; -import com.mes.taskcache.entity.TaskCache; import com.mes.taskcache.service.TaskCacheService; import com.mes.utils.Result; import io.swagger.annotations.Api; @@ -15,7 +14,7 @@ /** * <p> - * 鍓嶇鎺у埗鍣� + * 鍓嶇鎺у埗鍣� * </p> * * @author zhoush @@ -30,39 +29,39 @@ private EdgStorageCageDetailsService edgStorageCageDetailsService; @Autowired - private EdgStorageCageService edgStorageCageService; - @Autowired private TaskCacheService taskCacheService; @ApiOperation("鏌ヨ鍒囧壊鐗堝浘淇℃伅-鏍规嵁 宸ョ▼鍙� 鍙傛暟(宸ョ▼鍙�)") @PostMapping("/cutTerritory") @ResponseBody public Result cutTerritory(String current) { - List<Map<String, Object>> h = edgStorageCageDetailsService.selectCurrentCutTerritory(current); - return Result.build(200,"鎴愬姛",h); + //engineerId=current; + List<List<Map<String, Object>>> h = edgStorageCageDetailsService.selectCurrentCutTerritory(current); + return Result.build(200, "鎴愬姛", h); } + @ApiOperation("璇嗗埆鏄剧ず 褰撳墠鐗堝浘 鍙傛暟()") @PostMapping("/currentCutTerritory") @ResponseBody public Result currentCutTerritory() { List<Map<String, Object>> h = edgStorageCageDetailsService.selectCutTerritory(); - return Result.build(200,"鎴愬姛",h); + return Result.build(200, "鎴愬姛", h); } - @ApiOperation("璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D,鍔熻兘[200锛氭嬁璧帮紝201:鐮存崯]锛�") + + @ApiOperation("璇嗗埆鎿嶄綔锛� 鐮存崯/鎷胯蛋 鍙傛暟锛圛D,鍔熻兘[9锛氭嬁璧帮紝8:鐮存崯]锛�") @PostMapping("/identControls") @ResponseBody - 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); + public Result<String> identControls(@RequestBody IdentWornRequest request) { + return Result.build(200, "鎴愬姛", edgStorageCageDetailsService.identControls(request)); } @ApiOperation("纾ㄨ竟浠诲姟 鍙傛暟()") @PostMapping("/selectEdgTask") @ResponseBody - public Result selectEdgTask(String line) { - List<Map<String,Object>> EdgTasks = taskCacheService.selectEdgInfo(line); - return Result.build(200,"鎴愬姛",EdgTasks); + public Result selectEdgTask(@RequestBody Map<String, String> arguments) { + String line = arguments.get("line"); + List<Map<String, Object>> EdgTasks = taskCacheService.selectEdgInfo(line); + return Result.build(200, "鎴愬姛", EdgTasks); } } -- Gitblit v1.8.0