| | |
| | | } |
| | | return storageTasks; |
| | | } |
| | | |
| | | //查询出片队列 |
| | | public List<Map> SelectOutTask() { |
| | | return homeMapper.SelectOutTask(); |
| | | } |
| | | //查询出片队列 |
| | | public List<Map> SelectOutLog() { |
| | | return homeMapper.SelectOutLog(); |
| | | } |
| | | |
| | | // 查询进/出片任务 |
| | | public List<GlassInfo> SelectMeasure() { |
| | |
| | | // 删除数据 |
| | | Map<String, Object> map = new HashMap<>(); |
| | | // QueueMapper.DeleteQueue(); |
| | | System.out.println("人工匹配ID:"+glassInfo.getMateid()+"膜系:"+glassInfo.getFilms()); |
| | | int count = homeMapper.SelectQueue(); |
| | | if (count > 0) { |
| | | homeMapper.UpdateQueue(glassInfo.getFlowcard(), glassInfo.getWidth(), glassInfo.getHeight(), |
| | |
| | | homeMapper.StartChange(flowcard, orderstate); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | int state = homeMapper.selectStartChange(flowcard); |
| | | map.put("message", "200"); |
| | | return Result.success(map); |
| | | } |
| | | // 开始/暂停出片队列 |
| | | public Result UpdateOutTask(Integer id, Integer state) { |
| | | homeMapper.UpdateOutTask(id, state); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("message", "200"); |
| | | return Result.success(map); |
| | | } |
| | | //删除出片队列 |
| | | public Result DeleteOutTask(Integer id) { |
| | | homeMapper.DeleteOutTask(id); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("message", "200"); |
| | | return Result.success(map); |
| | | } |
| | |
| | | && |
| | | item.get("films") != null && item.get("base") != null && item.get("height") != null |
| | | && item.get("thickness") != null && item.get("quantity") != null |
| | | && item.get("matching") != null)) |
| | | && item.get("matching") != null)&& item.get("Customer") != null) |
| | | .collect(Collectors.toList()); |
| | | |
| | | TypeDatas.forEach(item -> { |
| | |
| | | glasstype = Integer.valueOf(value); |
| | | } |
| | | // |
| | | |
| | | homeMapper.AddGlassinfo(map.get("order").toString(), glasstype, |
| | | Integer.parseInt(map.get("matching").toString()) // 需要计算 配片ID |
| | | , map.get("order").toString() + "-" + count + "" // 需要计算 玻璃ID |
| | | , Integer.parseInt(map.get("tier").toString()), map.get("films").toString(), |
| | | Double.parseDouble(map.get("base").toString()), Double.parseDouble(map.get("height").toString()), |
| | | Double.parseDouble(map.get("thickness").toString()), |
| | | Integer.parseInt(map.get("quantity").toString()), groupby.get(tierkey));// 需要计算总层数 |
| | | Integer.parseInt(map.get("quantity").toString()), groupby.get(tierkey),map.get("Customer").toString());// 需要计算总层数 |
| | | // 订单内总层数 |
| | | homeMapper.InsertFlowcard(map.get("order").toString(), OrderFinishedProduct.get(tierkey + "_Sum")); |
| | | homeMapper.InsertFlowcard(map.get("order").toString(), OrderFinishedProduct.get(tierkey + "_Sum"), map.get("Customer").toString()); |
| | | count++; |
| | | } |
| | | Map<String, Object> ResultCode = new HashMap<>(); |