|
|
|
@ -198,29 +198,29 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
//新增
|
|
|
|
|
distrilbutionBillLading.setAssignStatus( |
|
|
|
|
StockAssignStatusConstant.weizhipai.getValue() |
|
|
|
|
); |
|
|
|
|
distrilbutionBillLading.setAssignStatus(StockAssignStatusConstant.weizhipai.getValue()); |
|
|
|
|
distrilbutionBillLading.setStockupStatus(StockupStatusConstant.weibeihuo.getValue()); |
|
|
|
|
distrilbutionBillLading.setConsignee("1"); |
|
|
|
|
this.save(distrilbutionBillLading); |
|
|
|
|
|
|
|
|
|
//修改订单状态
|
|
|
|
|
String[] split = distrilbutionBillLading.getStockArticleId().split(","); |
|
|
|
|
for (String s : split) { |
|
|
|
|
DistributionStockArticleEntity distributionStockArticle = new DistributionStockArticleEntity(); |
|
|
|
|
distributionStockArticle.setId(Long.parseLong(s)); |
|
|
|
|
if(StringUtils.isNotBlank(distrilbutionBillLading.getStockArticleId())){ |
|
|
|
|
String[] split = distrilbutionBillLading.getStockArticleId().split(","); |
|
|
|
|
for (String s : split) { |
|
|
|
|
DistributionStockArticleEntity distributionStockArticle = new DistributionStockArticleEntity(); |
|
|
|
|
distributionStockArticle.setId(Long.parseLong(s)); |
|
|
|
|
// distributionStockArticle.setOrderStatus(ServiceConstant.ORDER_STATE_TWO);
|
|
|
|
|
distributionStockArticle.setReservationStatus(OrderReservationStatusConstant.yiyueyue.getValue()); |
|
|
|
|
distributionStockArticle.setStockupStatus(StockupStatusConstant.daibeihuo.getValue()); |
|
|
|
|
distributionStockArticleService.updateById(distributionStockArticle); |
|
|
|
|
//添加订单和提货单关联
|
|
|
|
|
DistrilbutionBillStockEntity distrilbutionBillStock = new DistrilbutionBillStockVO(); |
|
|
|
|
distrilbutionBillStock.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
distrilbutionBillStock.setStockArticleId(Long.parseLong(s)); |
|
|
|
|
distrilbutionBillStock.setConditions("1"); |
|
|
|
|
distrilbutionBillStockService.save(distrilbutionBillStock); |
|
|
|
|
distributionStockArticle.setReservationStatus(OrderReservationStatusConstant.yiyueyue.getValue()); |
|
|
|
|
distributionStockArticle.setStockupStatus(StockupStatusConstant.daibeihuo.getValue()); |
|
|
|
|
distributionStockArticleService.updateById(distributionStockArticle); |
|
|
|
|
//添加订单和提货单关联
|
|
|
|
|
DistrilbutionBillStockEntity distrilbutionBillStock = new DistrilbutionBillStockVO(); |
|
|
|
|
distrilbutionBillStock.setBillLadingId(distrilbutionBillLading.getId()); |
|
|
|
|
distrilbutionBillStock.setStockArticleId(Long.parseLong(s)); |
|
|
|
|
distrilbutionBillStock.setConditions("1"); |
|
|
|
|
distrilbutionBillStockService.save(distrilbutionBillStock); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//操作图片
|
|
|
|
|
if(distrilbutionBillLading.getPrintList().size() > 0){ |
|
|
|
|
addPrint(distrilbutionBillLading); |
|
|
|
|