feat: 增改时校验客户名称和编号唯一

This commit is contained in:
caiyuchao
2025-05-26 11:14:26 +08:00
parent 25146b57c5
commit 3ee5944153
2 changed files with 20 additions and 1 deletions

View File

@@ -8,5 +8,7 @@ import org.agt.framework.common.exception.ErrorCode;
* @since: 2025-05-22
*/
public interface ErrorCodeConstants {
ErrorCode CUSTOMER_NOT_EXISTS = new ErrorCode(2000, "客户不存在");
ErrorCode CUSTOMER_NOT_EXISTS = new ErrorCode(1_100_001_001, "客户不存在");
ErrorCode CUSTOMER_NAME_DUPLICATE = new ErrorCode(1_100_001_002, "客户名称`{}`已存在");
ErrorCode CUSTOMER_CODE_DUPLICATE = new ErrorCode(1_100_001_003, "客户编号`{}`已存在");
}