wu
2024-10-26 328f9b1f7a046378ef5d8f2b8337770fff372cc7
springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java
@@ -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);
            }