|
|
|
@ -519,6 +519,9 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
|
Integer unloadNum = carsLoadScanEntity.getUnloadNum(); |
|
|
|
|
Integer num = carsLoadScanEntity.getNum(); |
|
|
|
|
String scanStatus = carsLoadScanEntity.getScanStatus(); |
|
|
|
|
Long fromWarehouseId = carsLoadScanEntity.getFromWarehouseId(); |
|
|
|
|
|
|
|
|
|
//卸车数量异常
|
|
|
|
|
AftersalesAbnormalRecordEntity abnormalRecordEntity = new AftersalesAbnormalRecordEntity(); |
|
|
|
|
abnormalRecordEntity.setTenantId(tenantId); |
|
|
|
@ -537,11 +540,19 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
abnormalRecordEntity.setUpUserId(userId); |
|
|
|
|
abnormalRecordEntity.setUpUserName(nickName); |
|
|
|
|
abnormalRecordEntity.setAbnormalStatus(0); |
|
|
|
|
abnormalRecordEntity.setRemark("零担卸车数量异常"); |
|
|
|
|
if("3".equals(scanStatus)){ |
|
|
|
|
abnormalRecordEntity.setAbnormalStatus(1); |
|
|
|
|
abnormalRecordEntity.setRemark("零担签收未完成数量回退原仓"); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findZeroByOrderCodeAndWarehouseId(orderCode, fromWarehouseId); |
|
|
|
|
if(!Objects.isNull(stockArticleEntity)){ |
|
|
|
|
distributionStockArticleClient.addHandQuantity(stockArticleEntity.getId(),num-unloadNum); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
abnormalRecordEntity.setSendOrderStatus(0); |
|
|
|
|
abnormalRecordEntity.setUpTime(new Date()); |
|
|
|
|
abnormalRecordEntity.setAssociationId(scanId); |
|
|
|
|
abnormalRecordEntity.setAssociationType(1); |
|
|
|
|
abnormalRecordEntity.setRemark("零担卸车数量异常"); |
|
|
|
|
abnormalRecordEntity.setIsZero(1); |
|
|
|
|
abnormalRecordEntity.setNum(num-unloadNum); |
|
|
|
|
addList.add(abnormalRecordEntity); |
|
|
|
|