From 48f8e9cc2abe03a2841eb5f873db6200a39bc1c5 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Sat, 26 Oct 2024 23:12:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/AftersalesAbnormalRecordServiceImpl.java | 11 ++++++----- .../mapper/DistributionStockArticleMapper.xml | 3 --- 2 files changed, 6 insertions(+), 8 deletions(-) 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