hurx il y a 1 mois
Parent
commit
66b4fae1af

+ 1 - 1
ruoyi-modules/ruoyi-customer/src/main/java/org/dromara/customer/service/impl/CustomerInfoServiceImpl.java

@@ -556,7 +556,7 @@ public class CustomerInfoServiceImpl extends ServiceImpl<CustomerInfoMapper, Cus
                 // --- 新增场景 ---
                 if (existingCustomer != null) {
                     // 数据库中已存在同名用户
-                    throw new IllegalArgumentException("客户名称不能为空");
+                    throw new IllegalArgumentException("该客户已存在,请勿重复添加");
                 }
                 // 不存在,继续执行插入
                 entity = MapstructUtils.convert(bo, CustomerInfo.class);