From 349bc91fc2c187c4b6c05a64d55eca6f18a7f82d Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 27 May 2025 09:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=8D=95=E4=BD=8D-=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SupermarketMaterialTypeServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/service/impl/SupermarketMaterialTypeServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/service/impl/SupermarketMaterialTypeServiceImpl.java index bfcf42a..94da4fc 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/service/impl/SupermarketMaterialTypeServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/service/impl/SupermarketMaterialTypeServiceImpl.java @@ -61,7 +61,7 @@ public class SupermarketMaterialTypeServiceImpl implements ISupermarketMaterialT try { SupermarketMaterialType checkResult = supermarketMaterialTypeMapper.selectSupermarketMaterialTypeByMaterialTypeName(supermarketMaterialType); if (Objects.nonNull(checkResult)) { - throw new ServiceException("改超市商品类别名已存在"); + throw new ServiceException("该超市商品类别名已存在"); } return supermarketMaterialTypeMapper.insertSupermarketMaterialType(supermarketMaterialType); } catch (Exception e) { @@ -84,7 +84,7 @@ public class SupermarketMaterialTypeServiceImpl implements ISupermarketMaterialT List otherSupermarketMaterialTypeList = allSupermarketMaterialTypeList.stream().filter(item -> !item.getMaterialTypeId().equals(supermarketMaterialType.getMaterialTypeId())) .map(SupermarketMaterialType::getMaterialTypeName).collect(Collectors.toList()); if (otherSupermarketMaterialTypeList.contains(supermarketMaterialType.getMaterialTypeName())) { - throw new ServiceException("改超市商品类别名已存在"); + throw new ServiceException("该超市商品类别名已存在"); } return supermarketMaterialTypeMapper.updateSupermarketMaterialType(supermarketMaterialType); } catch (Exception e) {