From 55ae9c0ef3cdd9fef75a83567f5b2055396984e9 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Fri, 8 Aug 2025 12:25:18 +0800 Subject: [PATCH] 2025/8/8 --- .../impl/PartInformationServiceImpl.java | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java index aaf91816..aa74feab 100644 --- a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java @@ -4407,7 +4407,7 @@ public class PartInformationServiceImpl extends ServiceImpl emptyPartNoRows = new ArrayList<>(); List repeatPartNoRows = new ArrayList<>(); List wrongBuNoRows = new ArrayList<>(); - List wrongIfsPartNos = new ArrayList<>(); + List wrongIfsPartNoRows = new ArrayList<>(); List partList = new ArrayList<>(); BuData buData = new BuData(); buData.setSite(data.getOrderRef1()); @@ -4435,26 +4435,26 @@ public class PartInformationServiceImpl extends ServiceImpl list = new Page(page, 4 *limit); - if (emptyPartNoRows.size()>0){ - String emptyPartNoRowsStr = "第" + emptyPartNoRows.stream().map(Object::toString).collect(Collectors.joining(",")) + "行料号为空!"; + if (!emptyPartNoRows.isEmpty()){ + String emptyPartNoRowsStr = "空料号: 第" + emptyPartNoRows.stream().map(Object::toString).collect(Collectors.joining("/")) + "行"; exceptionList.add(emptyPartNoRowsStr); } - if (repeatPartNoRows.size()>0){ - String repeatPartNoRowsStr = "第" + repeatPartNoRows.stream().map(Object::toString).collect(Collectors.joining(",")) + "行出现重复料号!"; + if (!repeatPartNoRows.isEmpty()){ + String repeatPartNoRowsStr = "重复料号: 第" + repeatPartNoRows.stream().map(Object::toString).collect(Collectors.joining("/")) + "行"; exceptionList.add(repeatPartNoRowsStr); } - if (wrongBuNoRows.size()>0){ - String wrongBuNoRowsStr = "第" + wrongBuNoRows.stream().map(Object::toString).collect(Collectors.joining(",")) + "行数据的BU在系统中不存在!"; + if (!wrongBuNoRows.isEmpty()){ + String wrongBuNoRowsStr = "BU异常: 第" + wrongBuNoRows.stream().map(Object::toString).collect(Collectors.joining("/")) + "行"; exceptionList.add(wrongBuNoRowsStr); } - if (wrongIfsPartNos.size()>0){ - String wrongIfsPartNosStr = "系统中不存在以下ifs物料编码:" + wrongIfsPartNos.stream().map(Object::toString).collect(Collectors.joining(",")) + "!"; + if (!wrongIfsPartNoRows.isEmpty()){ + String wrongIfsPartNosStr = null; + if ("N".equals(searchType)){ + // Inventory Part + wrongIfsPartNosStr = "IFS物料编码在Inventory Part中不存在: 第"+ wrongIfsPartNoRows.stream().map(Object::toString).collect(Collectors.joining("/")) + "行"; + } else { + // Project Part + wrongIfsPartNosStr = "IFS物料编码在Project Part中不存在: 第"+ wrongIfsPartNoRows.stream().map(Object::toString).collect(Collectors.joining("/")) + "行"; + } exceptionList.add(wrongIfsPartNosStr); } list.setRecords(exceptionList);