|
|
|
@ -333,56 +333,6 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
|
|
|
|
|
log.error(">>>>> createStockArticle",e); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//存入包件信息
|
|
|
|
|
// List<WarehouseWayBillDetail> details = warehouseWayBillDetailService.findByWaybillId(waybillId);
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// // 查询运单的附件
|
|
|
|
|
// List<DistributionParcelListEntity> tesmn = distributionParcelListClient.findEntityListByOrderCode(distributionStockArticleEntity.getOrderCode());
|
|
|
|
|
//
|
|
|
|
|
// if(ObjectUtils.isEmpty(tesmn)||tesmn.isEmpty()){
|
|
|
|
|
// // 新增
|
|
|
|
|
// DistributionParcelListEntity entity = new DistributionParcelListEntity();
|
|
|
|
|
//
|
|
|
|
|
// entity.setQuantity(stockCount);
|
|
|
|
|
// entity.setConditions(3);
|
|
|
|
|
// entity.setStockArticleId(id);
|
|
|
|
|
// entity.setWarehouse(distributionStockArticleEntity.getWarehouse());
|
|
|
|
|
// entity.setWarehouseId(distributionStockArticleEntity.getWarehouseId());
|
|
|
|
|
// entity.setOrderCode(distributionStockArticleEntity.getOrderCode());
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// for (WarehouseWayBillDetail warehouseWayBillDetail : details) {
|
|
|
|
|
// entity.setMaterialName((StringUtil.isBlank(entity.getMaterialName())?"":entity.getMaterialName())+warehouseWayBillDetail.getProductName());
|
|
|
|
|
// }
|
|
|
|
|
// distributionParcelListClient.add(entity);
|
|
|
|
|
// }else{
|
|
|
|
|
// // 更新
|
|
|
|
|
// DistributionParcelListEntity distributionParcelListEntity = tesmn.get(0);
|
|
|
|
|
// distributionParcelListEntity.setQuantity(stockCount);
|
|
|
|
|
// distributionParcelListClient.update(distributionParcelListEntity);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<DistributionParcelListEntity> ls = new ArrayList<>();
|
|
|
|
|
// for (WarehouseWayBillDetail warehouseWayBillDetail : details) {
|
|
|
|
|
// DistributionParcelListEntity entity = new DistributionParcelListEntity();
|
|
|
|
|
// entity.setMaterialName(warehouseWayBillDetail.getProductName());
|
|
|
|
|
// entity.setQuantity(warehouseWayBillDetail.getNum());
|
|
|
|
|
// entity.setConditions(3);
|
|
|
|
|
// entity.setStockArticleId(id);
|
|
|
|
|
// ls.add(entity);
|
|
|
|
|
// }
|
|
|
|
|
// boolean b = distributionParcelListClient.addBatch(ls);
|
|
|
|
|
// if (!b) {
|
|
|
|
|
// log.warn("#################createStockArticle: 保存包件信息失败 orderSelfNum={}", waybillNo);
|
|
|
|
|
// throw new CustomerException(405, "保存包件信息失败");
|
|
|
|
|
// }
|
|
|
|
|
// 判断运单的货物是否齐套
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -576,7 +526,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
|
|
|
|
|
warehouseWaybill.setTotalWeight(wayBillEntity.getWeight()); |
|
|
|
|
warehouseWaybill.setTotalVolume(wayBillEntity.getVolume()); |
|
|
|
|
warehouseWaybill.setDeliveryMethod(wayBillEntity.getSendType()); |
|
|
|
|
warehouseWaybill.setUrgency(wayBillEntity.getUrgency()+""); |
|
|
|
|
warehouseWaybill.setUrgency(wayBillEntity.getUrgency()); |
|
|
|
|
warehouseWaybill.setReceiptCount(wayBillEntity.getReceiptNum()); |
|
|
|
|
warehouseWaybill.setReceiptRequirement(wayBillEntity.getReceiptAsk()); |
|
|
|
|
//--------------2023-07-28-------------
|
|
|
|
|