|
|
@ -1,5 +1,6 @@ |
|
|
|
package org.nl.wms.sch.task_manage.task.tasks.connector; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
@ -30,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Comparator; |
|
|
|
import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
@ -44,6 +46,7 @@ public class CNTTask extends AbstractTask { |
|
|
|
|
|
|
|
private static final String TASK_CONFIG_CODE = "CNTTask"; |
|
|
|
private static final String[] EMPTY_POINT = {"13-01-01","13-01-04"}; |
|
|
|
private static final String[] CUSTOMIZE_POINT = {"CYXLDJW01","CYXLDJW02"}; |
|
|
|
@Autowired |
|
|
|
private ISchBasePointService pointService; |
|
|
|
@Autowired |
|
|
@ -66,7 +69,10 @@ public class CNTTask extends AbstractTask { |
|
|
|
}; |
|
|
|
tasks = tasks.stream().sorted(numericSuffixComparator).collect(Collectors.toList()); |
|
|
|
for (SchBaseTask task : tasks) { |
|
|
|
SchBasePoint schBasePoint = precedencePoint(); |
|
|
|
SchBasePoint schBasePoint = null; |
|
|
|
if(CollUtil.contains(Arrays.asList(CUSTOMIZE_POINT),task.getPoint_code1())){ |
|
|
|
schBasePoint = precedencePoint(); |
|
|
|
} |
|
|
|
if (ObjectUtil.isEmpty(schBasePoint) && TaskType.CARRY_TASK.getValue().equals(task.getTask_type())) { |
|
|
|
schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code(), task.getVehicle_code(), "1"); |
|
|
|
} |
|
|
|