|
|
|
@ -3105,27 +3105,29 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
// String operationRemark = "运单装车"+enterNum+"件 干线批次号:"+carsLoadEntity.getCarsNo()+",车牌号:"+carsLoadEntity.getCarNumber()+",司机姓名:"+carsLoadEntity.getDriverName()+",司机手机:"+carsLoadEntity.getDriverMobile();
|
|
|
|
|
// openOrderAsyncService.saveLog(waybillId, waybillNo, "30", "干线装车", operationRemark, AuthUtil.getNickName(), AuthUtil.getUserId(), warehouseId, warehouseName);
|
|
|
|
|
QueryWrapper<TrunklineWaybillOrderEntity> queryWrapper1 = new QueryWrapper<>(); |
|
|
|
|
queryWrapper1.eq("waybill_id",waybillId) |
|
|
|
|
.eq("order_code",waybillNo); |
|
|
|
|
TrunklineWaybillOrderEntity one = trunklineWaybillOrderService.getOne(queryWrapper1); |
|
|
|
|
if(!Objects.isNull(one)){ |
|
|
|
|
Integer totalCount = waybillEntity.getTotalCount(); |
|
|
|
|
Integer waybillStatusInt = Integer.parseInt(waybillEntity.getWaybillStatus()); |
|
|
|
|
if(waybillStatusInt <= 30){ |
|
|
|
|
Integer handleNumber = one.getHandleNumber(); |
|
|
|
|
int total = handleNumber + enterNum; |
|
|
|
|
if(total < totalCount){ |
|
|
|
|
waybillEntity.setWaybillStatus("30"); |
|
|
|
|
one.setHandleNumber(total); |
|
|
|
|
}else{ |
|
|
|
|
waybillEntity.setWaybillStatus("40"); |
|
|
|
|
one.setHandleNumber(totalCount); |
|
|
|
|
} |
|
|
|
|
warehouseWaybillClient.updateEntity(waybillEntity); |
|
|
|
|
trunklineWaybillOrderService.updateById(one); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// QueryWrapper<TrunklineWaybillOrderEntity> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
|
// queryWrapper1.eq("waybill_id",waybillId)
|
|
|
|
|
// .eq("order_code",waybillNo);
|
|
|
|
|
// TrunklineWaybillOrderEntity one = trunklineWaybillOrderService.getOne(queryWrapper1);
|
|
|
|
|
// if(!Objects.isNull(one)){
|
|
|
|
|
// Integer totalCount = waybillEntity.getTotalCount();
|
|
|
|
|
// Integer waybillStatusInt = Integer.parseInt(waybillEntity.getWaybillStatus());
|
|
|
|
|
// if(waybillStatusInt <= 30){
|
|
|
|
|
// Integer handleNumber = one.getHandleNumber();
|
|
|
|
|
// int total = handleNumber + enterNum;
|
|
|
|
|
// if(total < totalCount){
|
|
|
|
|
// waybillEntity.setWaybillStatus("30");
|
|
|
|
|
// one.setHandleNumber(total);
|
|
|
|
|
// }else{
|
|
|
|
|
// waybillEntity.setWaybillStatus("40");
|
|
|
|
|
// one.setHandleNumber(totalCount);
|
|
|
|
|
// }
|
|
|
|
|
// warehouseWaybillClient.updateEntity(waybillEntity);
|
|
|
|
|
// trunklineWaybillOrderService.updateById(one);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
waybillPackageService.updateWaybillStatus(waybillEntity); |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadingLogService.savaLoadingLog(warehouseId, warehouseName, loadId, loadCode, waybillId, waybillNo, orderCode, goodsName, difficult, |
|
|
|
|
2, isData, isAbnormal, trayId, trayCode, trayName, fromWarehouseId, loadScanId, remark); |
|
|
|
|