From bb4d77d29f183aae8d13e533784c1a204a7caa54 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 14 Apr 2025 15:13:05 +0800 Subject: [PATCH] 2025-04-14 --- .../service/impl/PartInformationServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 444511a8..00e2b504 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 @@ -481,11 +481,11 @@ public class PartInformationServiceImpl extends ServiceImpl checkItem = partInformationMapper.checkItem(itemDate); if (checkItem.isEmpty()) { - throw new RuntimeException("该项目编码不存在!"); + throw new RuntimeException("属性编码不存在!"); } List checkDetail = partInformationMapper.checkPartItem(itemDate); if (!checkDetail.isEmpty()) { - throw new RuntimeException("该项目已存在!"); + throw new RuntimeException("属性编码已存在!"); } itemDate.setItemNo(partInformationMapper.getModalDetailSeqNo(itemDate)); partInformationMapper.addPartItem(itemDate); @@ -951,11 +951,11 @@ public class PartInformationServiceImpl extends ServiceImpl checkItem = partInformationMapper.checkItem(itemDate); if (checkItem.isEmpty()) { - throw new RuntimeException("该项目编码不存在!"); + throw new RuntimeException("属性编码不存在!"); } List checkDetail = partInformationMapper.checkPartItem(itemDate); if (!checkDetail.isEmpty()) { - throw new RuntimeException("该项目已存在!"); + throw new RuntimeException("属性编码已存在!"); } itemDate.setItemNo(partInformationMapper.getModalDetailSeqNo(itemDate)); partInformationMapper.addPartItem(itemDate); @@ -1504,11 +1504,11 @@ public class PartInformationServiceImpl extends ServiceImpl checkItem = partInformationMapper.checkItem(itemDate); if (checkItem.isEmpty()) { - throw new RuntimeException("该项目编码不存在!"); + throw new RuntimeException("属性编码不存在!"); } List checkDetail = partInformationMapper.checkPartItem(itemDate); if (!checkDetail.isEmpty()) { - throw new RuntimeException("该项目已存在!"); + throw new RuntimeException("属性编码已存在!"); } itemDate.setItemNo(partInformationMapper.getModalDetailSeqNo(itemDate)); partInformationMapper.addPartItem(itemDate); @@ -2846,11 +2846,11 @@ public class PartInformationServiceImpl extends ServiceImpl checkItem = partInformationMapper.checkItem(itemDate); if (checkItem.isEmpty()) { - throw new RuntimeException("该项目编码不存在!"); + throw new RuntimeException("该属性项目编码不存在!"); } List checkDetail = partInformationMapper.checkPartItem(itemDate); if (!checkDetail.isEmpty()) { - throw new RuntimeException("该项目已存在!"); + throw new RuntimeException("该属性项目已存在!"); } itemDate.setItemNo(partInformationMapper.getModalDetailSeqNo(itemDate)); partInformationMapper.addPartItem(itemDate);