From 328f9b1f7a046378ef5d8f2b8337770fff372cc7 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期六, 26 十月 2024 19:12:07 +0800 Subject: [PATCH] 更新测试后代码 --- springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java b/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java index b177138..c83305f 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java +++ b/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java @@ -14,7 +14,7 @@ import com.example.springboot.component.PLCAutoMes; import com.example.springboot.component.Plchome; import com.example.springboot.component.S7control; -import com.example.springboot.entity.FlowCard; +import com.example.springboot.entity.Flowcard; import com.example.springboot.entity.GlassInfo; import com.example.springboot.entity.Queue; import com.example.springboot.entity.StorageCage; @@ -289,9 +289,9 @@ } // 鏌ヨ璁㈠崟浠诲姟 - public List<FlowCard> SelectOrderTask() { - List<FlowCard> OrderTask = homeMapper.SelectOrderTask(); - for (FlowCard flowcard : OrderTask) { + public List<Flowcard> SelectOrderTask() { + List<Flowcard> OrderTask = homeMapper.SelectOrderTask(); + for (Flowcard flowcard : OrderTask) { flowcard.setglassinfo(homeMapper.SelectOrderView(flowcard.getFlowcard())); } return OrderTask; @@ -361,7 +361,16 @@ public Result StartChange(String flowcard) { homeMapper.StartChange(flowcard, 1); Map<String, Object> map = new HashMap<>(); + int state=homeMapper.selectStartChange(flowcard); map.put("message", "200"); + return Result.success(map); + } + // 鍒犻櫎宸ョ▼ + public Result deleteTasks(String flowcard) { + int aa=homeMapper.deleteFlowcard(flowcard.trim()); + homeMapper.deleteGlassinfo(flowcard.trim()); + Map<String, Object> map = new HashMap<>(); + map.put("message", aa); return Result.success(map); } @@ -429,16 +438,21 @@ for (Map map : RemoveErrorData) { String key = map.get("base").toString() + "_" + map.get("height").toString() + "_" + map.get("thickness").toString() + "_" + map.get("films").toString(); - + String tierkey = map.get("order").toString() + "_" + map.get("matching").toString(); String value = TypeData.get(key); Integer glasstype; + System.out.println(key+":"+TypeData.get(key)); if (TypeData.get(key) == null) { + + glasstype = homeMapper.SelectMaxTypes(key); + if(glasstype==null){ glasstype = homeMapper.SelectMaxType(); + } if (glasstype == null) { glasstype = 1; - } + } } else { glasstype = Integer.valueOf(value); } -- Gitblit v1.8.0