|
|
|
@ -204,7 +204,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBil
|
|
|
|
|
TrunklineBillladingLogEntity logEntity = new TrunklineBillladingLogEntity(); |
|
|
|
|
logEntity.setWarehouseId(warehouseId); |
|
|
|
|
logEntity.setWarehouseName(warehouseName); |
|
|
|
|
logEntity.setCreateUserName(AuthUtil.getUserName()); |
|
|
|
|
logEntity.setCreateUserName(AuthUtil.getNickName()); |
|
|
|
|
logEntity.setContent("修改提货单 billladingCode="+billladingCode+" "+updateMsg); |
|
|
|
|
logEntity.setBillladingId(billladingId); |
|
|
|
|
logEntity.setBeforeOpreation(JSON.toJSONString(billladingEntity)); |
|
|
|
@ -435,8 +435,8 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBil
|
|
|
|
|
billladingEntity.setBillladingStatus("4"); |
|
|
|
|
billladingEntity.setSettlementTime(date); |
|
|
|
|
billladingEntity.setSettlementId(AuthUtil.getUserId()); |
|
|
|
|
billladingEntity.setSettlementName(AuthUtil.getUserName()); |
|
|
|
|
stringBuffer.append(",提货完成变更为已结算,时间").append(CommonUtil.dateToString(date)).append(",变更人").append(AuthUtil.getUserName()); |
|
|
|
|
billladingEntity.setSettlementName(AuthUtil.getNickName()); |
|
|
|
|
stringBuffer.append(",提货完成变更为已结算,时间").append(CommonUtil.dateToString(date)).append(",变更人").append(AuthUtil.getNickName()); |
|
|
|
|
|
|
|
|
|
List<TrunklineBillladingWaybillEntity> billladingWaybillEntities = billladingWaybillService.findNoFinishWaybillByBillladingId(billladingId); |
|
|
|
|
Map<Long,Integer> map = new HashMap<>(); |
|
|
|
@ -480,7 +480,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBil
|
|
|
|
|
case 6: |
|
|
|
|
//取消提货
|
|
|
|
|
billladingEntity.setBillladingStatus("5"); |
|
|
|
|
stringBuffer.append(",变更为取消提货,时间").append(CommonUtil.dateToString(new Date())).append(",变更人").append(AuthUtil.getUserName()); |
|
|
|
|
stringBuffer.append(",变更为取消提货,时间").append(CommonUtil.dateToString(new Date())).append(",变更人").append(AuthUtil.getNickName()); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
log.warn("#############updateBillladingStatus: 未知的更新操作"); |
|
|
|
@ -547,6 +547,13 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBil
|
|
|
|
|
return R.fail(405,"提货单不存在"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String billladingStatus = billladingEntity.getBillladingStatus(); |
|
|
|
|
if(!"1".equals(billladingStatus) && !"2".equals(billladingStatus)){ |
|
|
|
|
log.warn("#############updateBillladingWaybillNum: 提货已经完成 billladingId={}",billladingId); |
|
|
|
|
return R.fail(405,"提货已经完成"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer stockNum = 0; |
|
|
|
|
BigDecimal stockWeight = BigDecimal.ZERO; |
|
|
|
|
BigDecimal stockVolume = BigDecimal.ZERO; |
|
|
|
@ -683,6 +690,12 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBil
|
|
|
|
|
return R.fail(405,"提货单不存在"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String billladingStatus = trunklineBillladingEntity.getBillladingStatus(); |
|
|
|
|
if(!"1".equals(billladingStatus) && !"2".equals(billladingStatus)){ |
|
|
|
|
log.warn("#############addWaybillToBillladingId: 提货已完成 billladingId={}",billladingId); |
|
|
|
|
return R.fail(405,"提货已完成"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
WarehouseWaybillEntity warehouseWaybillEntity = warehouseWaybillClient.findByWaybillNo(waybillNo); |
|
|
|
|
if(Objects.isNull(warehouseWaybillEntity)){ |
|
|
|
|
log.warn("#############addWaybillToBillladingId: 运单不存在 waybillNo={}",waybillNo); |
|
|
|
|