|
|
|
|
@ -106,14 +106,16 @@ public class SchedulingOutboundInfo { |
|
|
|
|
BaseBarcodesOutQueryBo baseBarcodesOutQueryBo = new BaseBarcodesOutQueryBo(); |
|
|
|
|
baseBarcodesOutQueryBo.setTraverseDate(startBarcodesOut.getTraverseDate()); |
|
|
|
|
baseBarcodesOutQueryBo.setEndTraverseDate(endBarcodesOut.getTraverseDate()); |
|
|
|
|
baseBarcodesOutQueryBo.setColor(startBarcodesOut.getColor()); |
|
|
|
|
baseBarcodesOutQueryBo.setBumperType(startBarcodesOut.getBumperType()); |
|
|
|
|
baseBarcodesOutQueryBo.setVehicleCode(startBarcodesOut.getVehicleCode()); |
|
|
|
|
// baseBarcodesOutQueryBo.setColor(startBarcodesOut.getColor());
|
|
|
|
|
// baseBarcodesOutQueryBo.setBumperType(startBarcodesOut.getBumperType());
|
|
|
|
|
// baseBarcodesOutQueryBo.setVehicleCode(startBarcodesOut.getVehicleCode());
|
|
|
|
|
BaseBarcodesOutAddBo barcodesOut = iBaseBarcodesOutService.selectVinOutboundListOne(baseBarcodesOutQueryBo); |
|
|
|
|
// 判断是否有任务,如果没有任务则返回
|
|
|
|
|
barcodesOutList.add(barcodesOut); |
|
|
|
|
if (ObjectUtils.isEmpty(barcodesOutList)) { |
|
|
|
|
if (ObjectUtils.isEmpty(barcodesOut)) { |
|
|
|
|
log.info("暂无任务"); |
|
|
|
|
redisTemplate.delete(RedisConstant.startTaskVin); |
|
|
|
|
redisTemplate.delete(RedisConstant.endTaskVin); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 获取小组装任务最大等待数
|
|
|
|
|
@ -138,7 +140,7 @@ public class SchedulingOutboundInfo { |
|
|
|
|
// 如果没执行到该停止任务,这不需要理会
|
|
|
|
|
if(ObjectUtils.isNotEmpty(redisTemplate.opsForValue().get(RedisConstant.endTaskVin))){ |
|
|
|
|
String endTaskVin = redisTemplate.opsForValue().get(RedisConstant.endTaskVin).toString(); |
|
|
|
|
if(endTaskVin.equals(barcodesOut.getVin())){ |
|
|
|
|
if(ObjectUtils.isNotEmpty(barcodesOut.getVin()) && endTaskVin.equals(barcodesOut.getVin())){ |
|
|
|
|
redisTemplate.delete(RedisConstant.startTaskVin); |
|
|
|
|
redisTemplate.delete(RedisConstant.endTaskVin); |
|
|
|
|
} |
|
|
|
|
|