|
|
@ -76,7 +76,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
private final DistributionReservationMapper distributionReservationMapper; |
|
|
|
private final DistributionReservationMapper distributionReservationMapper; |
|
|
|
private final DistributionReservationPackageMapper distributionReservationPackageMapper; |
|
|
|
private final DistributionReservationPackageMapper distributionReservationPackageMapper; |
|
|
|
private final DistributionParcelListServiceImpl distributionParcelListService; |
|
|
|
private final DistributionParcelListServiceImpl distributionParcelListService; |
|
|
|
private final DistributionStockupMapper distributionStockupService; |
|
|
|
private final DistributionStockupMapper distributionStockupMapper; |
|
|
|
private final DistributionStockupInfoMapper distributionStockupInfoMapper; |
|
|
|
private final DistributionStockupInfoMapper distributionStockupInfoMapper; |
|
|
|
private final DistributionReservationStockarticleMapper distributionReservationStockarticleMapper; |
|
|
|
private final DistributionReservationStockarticleMapper distributionReservationStockarticleMapper; |
|
|
|
private final IDistributionReservationStockarticleService distributionReservationStockarticleService; |
|
|
|
private final IDistributionReservationStockarticleService distributionReservationStockarticleService; |
|
|
@ -653,12 +653,10 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
List<DistributionStockupSelfVO> distributionStockupSelfVO = new ArrayList<>(); |
|
|
|
List<DistributionStockupSelfVO> distributionStockupSelfVO = new ArrayList<>(); |
|
|
|
if (stockupDTO.getTypeService().equals(DistributionTypeConstant.ziti.getValue())) { |
|
|
|
if (stockupDTO.getTypeService().equals(DistributionTypeConstant.ziti.getValue())) { |
|
|
|
//自
|
|
|
|
//自
|
|
|
|
Thread.sleep(300); |
|
|
|
distributionStockupSelfVO = distributionStockupMapper.stockupSelfOffShelf(stockupDTO); |
|
|
|
distributionStockupSelfVO = distributionStockupService.stockupSelfOffShelf(stockupDTO); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
//商 市
|
|
|
|
//商 市
|
|
|
|
Thread.sleep(300); |
|
|
|
distributionStockupSelfVO = distributionStockupMapper.stockupOffShelf(stockupDTO); |
|
|
|
distributionStockupSelfVO = distributionStockupService.stockupOffShelf(stockupDTO); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//有
|
|
|
|
//有
|
|
|
|
List<DistributionStockupSelfVO> collectY = distributionStockupSelfVO.stream().filter(o -> ObjectUtils.isNotNull(o.getAllocationId())).collect(Collectors.toList()); |
|
|
|
List<DistributionStockupSelfVO> collectY = distributionStockupSelfVO.stream().filter(o -> ObjectUtils.isNotNull(o.getAllocationId())).collect(Collectors.toList()); |
|
|
@ -685,27 +683,6 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//没有
|
|
|
|
|
|
|
|
/*List<DistributionStockupSelfVO> collectW = distributionStockupSelfVO.stream().filter(o -> ObjectUtils.isNull(o.getAllocationId())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
|
|
|
|
AtomicInteger a = new AtomicInteger(); |
|
|
|
|
|
|
|
AtomicInteger b = new AtomicInteger(); |
|
|
|
|
|
|
|
collectW.forEach(i -> { |
|
|
|
|
|
|
|
if (ObjectUtils.isNull(i.getLwugId())) { |
|
|
|
|
|
|
|
a.addAndGet(1); |
|
|
|
|
|
|
|
if (ObjectUtils.isNotNull(i.getLdsId())) { |
|
|
|
|
|
|
|
b.addAndGet(1); |
|
|
|
|
|
|
|
list.add(i.getOrderPackageCode()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
if (a.get() == b.get()) { |
|
|
|
|
|
|
|
//下架
|
|
|
|
|
|
|
|
list.forEach(i -> { |
|
|
|
|
|
|
|
warehouseUpdownTypeClient.downPackage(i); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -1165,7 +1142,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
stockupEntity.setId(stockupDTO.getStockupId()); |
|
|
|
stockupEntity.setId(stockupDTO.getStockupId()); |
|
|
|
distributionStockupService.updateById(stockupEntity); |
|
|
|
distributionStockupMapper.updateById(stockupEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -2426,7 +2403,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
//判断数量
|
|
|
|
//判断数量
|
|
|
|
int i = (nu.get() + ku.get()) - (nuy.get() + num); |
|
|
|
int i = (nu.get() + ku.get()) - (nuy.get() + num); |
|
|
|
//查询备货状态
|
|
|
|
//查询备货状态
|
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionStockupService.selectById(stockupDTO.getStockupId()); |
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionStockupMapper.selectById(stockupDTO.getStockupId()); |
|
|
|
DistributionStockupEntity distributionStockup = new DistributionStockupEntity(); |
|
|
|
DistributionStockupEntity distributionStockup = new DistributionStockupEntity(); |
|
|
|
DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); |
|
|
|
DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); |
|
|
|
boolean fa = false; |
|
|
|
boolean fa = false; |
|
|
@ -2462,7 +2439,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
if (!fa) { |
|
|
|
if (!fa) { |
|
|
|
//没有
|
|
|
|
//没有
|
|
|
|
//修改备货状态
|
|
|
|
//修改备货状态
|
|
|
|
distributionStockupService.updateById(distributionStockup); |
|
|
|
distributionStockupMapper.updateById(distributionStockup); |
|
|
|
|
|
|
|
|
|
|
|
//修改预约状态
|
|
|
|
//修改预约状态
|
|
|
|
distributionReservationMapper.updateById(reservationEntity); |
|
|
|
distributionReservationMapper.updateById(reservationEntity); |
|
|
@ -2555,7 +2532,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
} |
|
|
|
} |
|
|
|
});*/ |
|
|
|
});*/ |
|
|
|
|
|
|
|
|
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionStockupService.selectById(stockupDTO.getStockupId()); |
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionStockupMapper.selectById(stockupDTO.getStockupId()); |
|
|
|
DistributionStockupEntity distributionStockup = new DistributionStockupEntity(); |
|
|
|
DistributionStockupEntity distributionStockup = new DistributionStockupEntity(); |
|
|
|
boolean fa = false; |
|
|
|
boolean fa = false; |
|
|
|
if (distributionStockupEntity.getStockupStatus().equals(StockupStatusConstant.beihuozhong.getValue())) { |
|
|
|
if (distributionStockupEntity.getStockupStatus().equals(StockupStatusConstant.beihuozhong.getValue())) { |
|
|
@ -2583,7 +2560,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (!fa) { |
|
|
|
if (!fa) { |
|
|
|
distributionStockupService.updateById(distributionStockup); |
|
|
|
distributionStockupMapper.updateById(distributionStockup); |
|
|
|
} |
|
|
|
} |
|
|
|
//绑定库存品包条码数据
|
|
|
|
//绑定库存品包条码数据
|
|
|
|
|
|
|
|
|
|
|
|