| | |
| | | } |
| | | |
| | | ArrayList<HashMap<String, Object>> taskDataList = new ArrayList<>(); |
| | | Map<String, Integer> outGroupSeqCounter = new HashMap<>(); |
| | | List<WrkMast> outTasks = wrkMastService.selectList(new EntityWrapper<WrkMast>().eq("wrk_sts", WrkStsType.NEW_OUTBOUND.sts)); |
| | | for (WrkMast wrkMast : outTasks) { |
| | | HashMap<String, Object> t = new HashMap<>(); |
| | |
| | | } |
| | | t.put("eligibleCranes", eligible); |
| | | t.put("conveyorPath", new ArrayList<>()); |
| | | String group = wrkMast.getWmsWrkNo(); |
| | | if (group == null || group.trim().isEmpty()) { |
| | | group = "WCS"; |
| | | } |
| | | int seq = outGroupSeqCounter.getOrDefault(group, 0) + 1; |
| | | outGroupSeqCounter.put(group, seq); |
| | | t.put("outGroup", group); |
| | | t.put("outSeq", seq); |
| | | t.put("outGroup", wrkMast.getBatch()); |
| | | t.put("outSeq", wrkMast.getBatchSeq()); |
| | | taskDataList.add(t); |
| | | } |
| | | |