|
|
@ -87,12 +87,12 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil |
|
|
|
|
|
|
|
|
|
|
|
WayBillEntity wayBillEntity = wayBillClient.getByWaybillId(wayBillId); |
|
|
|
WayBillEntity wayBillEntity = wayBillClient.getByWaybillId(wayBillId); |
|
|
|
|
|
|
|
|
|
|
|
if(ObjectUtils.isNull(wayBillEntity)){ |
|
|
|
if (ObjectUtils.isNull(wayBillEntity)) { |
|
|
|
log.warn("##############waybillDataHandler: 老系统中未找到对应运单waybillId={}", waybillDTO.getId()); |
|
|
|
log.warn("##############waybillDataHandler: 老系统中未找到对应运单waybillId={}", waybillDTO.getId()); |
|
|
|
throw new CustomerException("老系统中未找到对应运单"); |
|
|
|
throw new CustomerException("老系统中未找到对应运单"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String waybillNo =wayBillEntity.getWaybillNo(); |
|
|
|
String waybillNo = wayBillEntity.getWaybillNo(); |
|
|
|
//通过运单号先去查询新系统是否存在这个运单号
|
|
|
|
//通过运单号先去查询新系统是否存在这个运单号
|
|
|
|
QueryWrapper<WarehouseWaybillEntity> waybillQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<WarehouseWaybillEntity> waybillQueryWrapper = new QueryWrapper<>(); |
|
|
|
waybillQueryWrapper.eq("waybill_no", waybillNo); |
|
|
|
waybillQueryWrapper.eq("waybill_no", waybillNo); |
|
|
@ -114,7 +114,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil |
|
|
|
for (WaybillDesEntity waybillDesEntity : des) { |
|
|
|
for (WaybillDesEntity waybillDesEntity : des) { |
|
|
|
WarehouseWayBillDetail warehouseWayBillDetail = new WarehouseWayBillDetail(); |
|
|
|
WarehouseWayBillDetail warehouseWayBillDetail = new WarehouseWayBillDetail(); |
|
|
|
warehouseWayBillDetail.setWaybillId(waybillId); |
|
|
|
warehouseWayBillDetail.setWaybillId(waybillId); |
|
|
|
warehouseWayBillDetail.setWaybillCode(waybillNo); |
|
|
|
warehouseWayBillDetail.setWaybillNo(waybillNo); |
|
|
|
warehouseWayBillDetail.setProductName(waybillDesEntity.getName()); |
|
|
|
warehouseWayBillDetail.setProductName(waybillDesEntity.getName()); |
|
|
|
warehouseWayBillDetail.setNum(waybillDesEntity.getNum()); |
|
|
|
warehouseWayBillDetail.setNum(waybillDesEntity.getNum()); |
|
|
|
warehouseWayBillDetail.setStatus(1); |
|
|
|
warehouseWayBillDetail.setStatus(1); |
|
|
@ -123,8 +123,8 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil |
|
|
|
warehouseWayBillDetail.setUpdateTime(date); |
|
|
|
warehouseWayBillDetail.setUpdateTime(date); |
|
|
|
ls.add(warehouseWayBillDetail); |
|
|
|
ls.add(warehouseWayBillDetail); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
warehouseWayBillDetailService.addList(ls); |
|
|
|
warehouseWayBillDetailService.addList(ls); |
|
|
|
//创建在库订单
|
|
|
|
|
|
|
|
createStockArticle(warehouseWaybill); |
|
|
|
createStockArticle(warehouseWaybill); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -343,6 +343,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 插入运单 |
|
|
|
* 插入运单 |
|
|
|
|
|
|
|
* |
|
|
|
* @param wayBillEntity |
|
|
|
* @param wayBillEntity |
|
|
|
* @param allNum |
|
|
|
* @param allNum |
|
|
|
* @return |
|
|
|
* @return |
|
|
|