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