| | |
| | | } |
| | | |
| | | 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); |
| | | } |
| | | |
| | |
| | | config.put("wMakespan", getIntConfig("plannerWeightMakespan", 1000)); |
| | | config.put("wPriorityEarlyFinish", getIntConfig("plannerWeightPriorityEarlyFinish", 5)); |
| | | config.put("wWaitTime", getIntConfig("plannerWeightWaitTime", 1)); |
| | | config.put("wOutTardiness", getIntConfig("plannerOutTardiness", 0)); |
| | | config.put("enableOutDue", getBoolConfig("plannerEnableOutDue", false)); |
| | | config.put("maxSolveSeconds", getIntConfig("plannerMaxSolveSeconds", 3)); |
| | | config.put("numSearchWorkers", getIntConfig("plannerNumSearchWorkers", 8)); |