diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAbnormalRecordServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAbnormalRecordServiceImpl.java index 55fa871a9..961db016c 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAbnormalRecordServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesAbnormalRecordServiceImpl.java @@ -116,12 +116,13 @@ public class AftersalesAbnormalRecordServiceImpl extends BaseServiceImpl abnormalRecordIds = abnormalRecordDTO.getAbnormalRecordIds(); List 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 ldsa.order_status in ('10','20','30','70') and ldsa.reservation_status in ('10','20') @@ -860,7 +858,6 @@ and ldsa.customer_address like concat('%',#{par.customerAddress},'%') - AND lww.check_status = 1 ORDER BY ldsa.warehouse_entry_time DESC