|
|
|
@ -116,12 +116,13 @@ public class AftersalesAbnormalRecordServiceImpl extends BaseServiceImpl<Aftersa
|
|
|
|
|
List<Long> abnormalRecordIds = abnormalRecordDTO.getAbnormalRecordIds(); |
|
|
|
|
List<AftersalesAbnormalRecordEntity> abnormalRecordEntityList = baseMapper.selectBatchIds(abnormalRecordIds); |
|
|
|
|
if(CollUtil.isNotEmpty(abnormalRecordIds)){ |
|
|
|
|
abnormalRecordEntityList.forEach(abnormalRecordEntity -> { |
|
|
|
|
|
|
|
|
|
for (AftersalesAbnormalRecordEntity abnormalRecordEntity : abnormalRecordEntityList) { |
|
|
|
|
Long abnormalRecordId = abnormalRecordEntity.getId(); |
|
|
|
|
Integer abnormalStatus = abnormalRecordEntity.getAbnormalStatus(); |
|
|
|
|
if(abnormalStatus.equals(1)){ |
|
|
|
|
log.warn("################dealAbnormal: 异常已完结"); |
|
|
|
|
throw new CustomerException(405,"异常已完结"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String abnormalType = abnormalRecordEntity.getAbnormalType(); |
|
|
|
|
String upWarehouseName = abnormalRecordEntity.getWarehouseName(); |
|
|
|
@ -141,7 +142,7 @@ public class AftersalesAbnormalRecordServiceImpl extends BaseServiceImpl<Aftersa
|
|
|
|
|
R r = trunklineCarsLoadScanClient.incomingPackage(carsLoadScanId); |
|
|
|
|
int code = r.getCode(); |
|
|
|
|
if(code != 200){ |
|
|
|
|
throw new CustomerException(405,"入库失败"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//发送异常列表包件入库
|
|
|
|
@ -163,7 +164,7 @@ public class AftersalesAbnormalRecordServiceImpl extends BaseServiceImpl<Aftersa
|
|
|
|
|
R r = trunklineCarsLoadScanClient.adnormalHasStock(carsLoadScanId,warehouseId); |
|
|
|
|
int code = r.getCode(); |
|
|
|
|
if(code != 200){ |
|
|
|
|
throw new CustomerException(405,"入库失败"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//已入库
|
|
|
|
@ -488,7 +489,7 @@ public class AftersalesAbnormalRecordServiceImpl extends BaseServiceImpl<Aftersa
|
|
|
|
|
abnormalRecordEntity.setDealUserId(AuthUtil.getUserId()); |
|
|
|
|
abnormalRecordEntity.setDealUserName(AuthUtil.getNickName()); |
|
|
|
|
updateById(abnormalRecordEntity); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return R.success("处理成功"); |
|
|
|
|
} |
|
|
|
|