|
|
|
@ -481,11 +481,11 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
itemDate.setItNo(itemDate.getPropertiesItemNo()); |
|
|
|
List<PartSubPropertiesValueData> checkItem = partInformationMapper.checkItem(itemDate); |
|
|
|
if (checkItem.isEmpty()) { |
|
|
|
throw new RuntimeException("该项目编码不存在!"); |
|
|
|
throw new RuntimeException("属性编码不存在!"); |
|
|
|
} |
|
|
|
List<PartSubPropertiesValueData> 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<PartInformationMappe |
|
|
|
itemDate.setItNo(itemDate.getPropertiesItemNo()); |
|
|
|
List<PartSubPropertiesValueData> checkItem = partInformationMapper.checkItem(itemDate); |
|
|
|
if (checkItem.isEmpty()) { |
|
|
|
throw new RuntimeException("该项目编码不存在!"); |
|
|
|
throw new RuntimeException("属性编码不存在!"); |
|
|
|
} |
|
|
|
List<PartSubPropertiesValueData> 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<PartInformationMappe |
|
|
|
itemDate.setSubCodeSeqNo(Double.valueOf("1")); |
|
|
|
List<PartSubPropertiesValueData> checkItem = partInformationMapper.checkItem(itemDate); |
|
|
|
if (checkItem.isEmpty()) { |
|
|
|
throw new RuntimeException("该项目编码不存在!"); |
|
|
|
throw new RuntimeException("属性编码不存在!"); |
|
|
|
} |
|
|
|
List<PartSubPropertiesValueData> 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<PartInformationMappe |
|
|
|
itemDate.setItNo(itemDate.getPropertiesItemNo()); |
|
|
|
List<PartSubPropertiesValueData> checkItem = partInformationMapper.checkItem(itemDate); |
|
|
|
if (checkItem.isEmpty()) { |
|
|
|
throw new RuntimeException("该项目编码不存在!"); |
|
|
|
throw new RuntimeException("该属性项目编码不存在!"); |
|
|
|
} |
|
|
|
List<PartSubPropertiesValueData> checkDetail = partInformationMapper.checkPartItem(itemDate); |
|
|
|
if (!checkDetail.isEmpty()) { |
|
|
|
throw new RuntimeException("该项目已存在!"); |
|
|
|
throw new RuntimeException("该属性项目已存在!"); |
|
|
|
} |
|
|
|
itemDate.setItemNo(partInformationMapper.getModalDetailSeqNo(itemDate)); |
|
|
|
partInformationMapper.addPartItem(itemDate); |
|
|
|
|