| | |
| | | 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); |
| | | } |
| | | |
| | |
| | | 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); |
| | | } |