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) {