【validator】更新TableUniqueValue注解的用法

pull/3/head
fengshuonan 2020-12-21 21:50:50 +08:00
parent 4e7d4b1d2a
commit a6aa6c3262
9 changed files with 39 additions and 13 deletions

View File

@ -34,7 +34,9 @@ public class DatabaseInfoParam extends BaseRequest {
message = "数据库名称存在重复",
groups = {add.class, edit.class},
tableName = "sys_database_info",
columnName = "db_name")
columnName = "db_name",
idFieldName = "db_id",
excludeLogicDeleteItems = true)
private String dbName;
/**

View File

@ -39,7 +39,9 @@ public class DictRequest extends BaseRequest {
message = "字典名称存在重复",
groups = {add.class, edit.class},
tableName = "sys_dict",
columnName = "dict_name")
columnName = "dict_name",
idFieldName = "dict_id",
excludeLogicDeleteItems = true)
private String dictName;
/**
@ -50,7 +52,9 @@ public class DictRequest extends BaseRequest {
message = "字典编码存在重复",
groups = {add.class, edit.class},
tableName = "sys_dict",
columnName = "dict_code")
columnName = "dict_code",
idFieldName = "dict_id",
excludeLogicDeleteItems = true)
private String dictCode;
/**

View File

@ -39,7 +39,9 @@ public class DictTypeRequest extends BaseRequest {
message = "字典类型编码存在重复",
groups = {add.class, edit.class},
tableName = "sys_dict_type",
columnName = "dict_type_code")
columnName = "dict_type_code",
idFieldName = "dict_type_id",
excludeLogicDeleteItems = true)
private String dictTypeCode;
/**
@ -50,7 +52,9 @@ public class DictTypeRequest extends BaseRequest {
message = "字典类型名称存在重复",
groups = {add.class, edit.class},
tableName = "sys_dict_type",
columnName = "dict_type_name")
columnName = "dict_type_name",
idFieldName = "dict_type_id",
excludeLogicDeleteItems = true)
private String dictTypeName;
/**

View File

@ -33,7 +33,9 @@ public class SysAppRequest extends BaseRequest {
message = "名称存在重复",
groups = {add.class, edit.class},
tableName = "sys_app",
columnName = "app_name")
columnName = "app_name",
idFieldName = "app_id",
excludeLogicDeleteItems = true)
private String appName;
/**
@ -44,7 +46,9 @@ public class SysAppRequest extends BaseRequest {
message = "编码存在重复",
groups = {add.class, edit.class},
tableName = "sys_app",
columnName = "app_code")
columnName = "app_code",
idFieldName = "app_id",
excludeLogicDeleteItems = true)
private String appCode;
/**

View File

@ -41,7 +41,9 @@ public class SysMenuRequest extends BaseRequest {
message = "菜单名称存在重复",
groups = {add.class, edit.class},
tableName = "sys_menu",
columnName = "menu_name")
columnName = "menu_name",
idFieldName = "menu_id",
excludeLogicDeleteItems = true)
private String menuName;
/**
@ -52,7 +54,9 @@ public class SysMenuRequest extends BaseRequest {
message = "菜单的编码不能为空",
groups = {add.class, edit.class},
tableName = "sys_menu",
columnName = "menu_code")
columnName = "menu_code",
idFieldName = "menu_id",
excludeLogicDeleteItems = true)
private String menuCode;
/**

View File

@ -52,7 +52,9 @@ public class HrOrganizationRequest extends BaseRequest {
message = "组织编码存在重复请检查code参数",
groups = {add.class, edit.class},
tableName = "hr_organization",
columnName = "org_code")
columnName = "org_code",
idFieldName = "org_id",
excludeLogicDeleteItems = true)
private String orgCode;
/**

View File

@ -40,7 +40,9 @@ public class HrPositionRequest extends BaseRequest {
message = "职位编码存在重复",
groups = {add.class, edit.class},
tableName = "hr_position",
columnName = "position_code")
columnName = "position_code",
idFieldName = "position_id",
excludeLogicDeleteItems = true)
private String positionCode;
/**

View File

@ -65,7 +65,9 @@ public class SysRoleRequest extends BaseRequest {
message = "角色编码存在重复",
groups = {add.class, edit.class},
tableName = "sys_role",
columnName = "role_code")
columnName = "role_code",
idFieldName = "role_id",
excludeLogicDeleteItems = true)
private String roleCode;
/**

View File

@ -37,7 +37,9 @@ public class SysUserRequest extends BaseRequest {
message = "账号存在重复请检查account参数",
groups = {add.class, edit.class},
tableName = "sys_user",
columnName = "account")
columnName = "account",
idFieldName = "user_id",
excludeLogicDeleteItems = true)
private String account;
/**