|
|
|
@ -336,10 +336,10 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
} |
|
|
|
|
//修改订单数据
|
|
|
|
|
if (!distrilbutionBillLading.getStockArticleList().isEmpty()) { |
|
|
|
|
// boolean order = getOrder(distrilbutionBillLading.getStockArticleList(), distrilbutionBillLading.getId());
|
|
|
|
|
// if (!order) {
|
|
|
|
|
// throw new ServiceException("修改失败!!");
|
|
|
|
|
// }
|
|
|
|
|
boolean order = getOrder(distrilbutionBillLading.getStockArticleList(), distrilbutionBillLading.getId()); |
|
|
|
|
if (!order) { |
|
|
|
|
throw new ServiceException("修改失败!!"); |
|
|
|
|
} |
|
|
|
|
List<DistributionStockArticleEntity> stockArticleList = distrilbutionBillLading.getStockArticleList(); |
|
|
|
|
if (Func.isNotEmpty(stockArticleList)){ |
|
|
|
|
String orderCodes = stockArticleList.stream().map(DistributionStockArticleEntity::getOrderCode).collect(Collectors.joining(",")); |
|
|
|
@ -650,6 +650,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
for (DistributionParcelListEntity distrilbutionBillPackageEntity : packageMap.get(Long.parseLong(s))) { |
|
|
|
|
DistrilbutionBillPackageEntity aaa = new DistrilbutionBillPackageEntity(); |
|
|
|
|
aaa.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
aaa.setStockArticleId(distrilbutionBillPackageEntity.getStockArticleId()); |
|
|
|
|
aaa.setParceListId(distrilbutionBillPackageEntity.getId()); |
|
|
|
|
aaa.setPacketBarStatus(1); |
|
|
|
|
aaa.setBillType("1"); |
|
|
|
|
aaa.setPacketNumber(distrilbutionBillPackageEntity.getQuantity()); |
|
|
|
@ -2030,7 +2032,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
List<DistrilbutionBillPackageEntity> list3 = distrilbutionBillPackageService.list(Wrappers.<DistrilbutionBillPackageEntity>query().lambda() |
|
|
|
|
.eq(DistrilbutionBillPackageEntity::getBillLadingId, distrilbutionBillLadingEntity.getId()) |
|
|
|
|
.ne(DistrilbutionBillPackageEntity::getPacketBarStatus, "2") |
|
|
|
|
.ne(DistrilbutionBillPackageEntity::getStockArticleId, distributionStockArticleVO.getId()) |
|
|
|
|
.eq(DistrilbutionBillPackageEntity::getStockArticleId, distributionStockArticleVO.getId()) |
|
|
|
|
); |
|
|
|
|
if (!list3.isEmpty()){ |
|
|
|
|
distributionStockArticleVO.setReservationNum(list3.size()); |
|
|
|
|