From 41258025cd6b7e4ca0cf4e9fd2988022df0bea85 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sat, 25 Jan 2025 13:09:15 +0800 Subject: [PATCH] =?UTF-8?q?2025-01-25=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PartInformationServiceImpl.java | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 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 48c953f7..954e889b 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 @@ -717,6 +717,7 @@ public class PartInformationServiceImpl extends ServiceImpl ifsProperty = savePartItemInfo2(data); PartRevisionEntity partRevision = partInformationMapper.getPartRevision(data); + // 从 Purchased (raw) 改为其他 if ("Purchased (raw)".equals(partData.getPartType()) && !data.getPartType().equals(partData.getPartType())) { // 查版本为1的版本 if (partRevision != null) { // 该物料存在版本为1的版本 @@ -742,23 +743,40 @@ public class PartInformationServiceImpl extends ServiceImpl updateInformationWrapper = new UpdateWrapper<>(); updateInformationWrapper.eq("site", data.getSite()); @@ -843,7 +861,7 @@ public class PartInformationServiceImpl extends ServiceImpl