|
@ -66,6 +66,20 @@ public class KJRKTask extends AbstractTask { |
|
|
Integer now_num = unFinishTasksByTaskConfig.size(); |
|
|
Integer now_num = unFinishTasksByTaskConfig.size(); |
|
|
for (SchBaseTask task : tasks) { |
|
|
for (SchBaseTask task : tasks) { |
|
|
if(now_num < tcmn){ |
|
|
if(now_num < tcmn){ |
|
|
|
|
|
SchBasePoint schBasePoint= pointService.getOne(new LambdaQueryWrapper<SchBasePoint>() |
|
|
|
|
|
.eq(SchBasePoint::getPoint_code, task.getPoint_code1())); |
|
|
|
|
|
if(task.getPoint_code1().startsWith("DKT")){ |
|
|
|
|
|
Integer max_qty = schBasePoint.getVehicle_max_qty(); |
|
|
|
|
|
//如果是叠盘位,根据当前数量+1为目标地址
|
|
|
|
|
|
int qty = schBasePoint.getVehicle_qty(); |
|
|
|
|
|
//当前叠盘数量大于设置的最大数9,不允许下发空载具入库任务
|
|
|
|
|
|
if(qty > max_qty){ |
|
|
|
|
|
task.setRemark("当前叠盘机空盘数量为:"+qty+"托,已超最大警戒值:["+max_qty+"]托,请人工处理!"); |
|
|
|
|
|
taskService.update(task); |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 找终点
|
|
|
// 找终点
|
|
|
SchBasePoint point = findNextPoint(); |
|
|
SchBasePoint point = findNextPoint(); |
|
|
if (ObjectUtil.isEmpty(point)) { |
|
|
if (ObjectUtil.isEmpty(point)) { |
|
|