fix(系统设置): 导入用户限制ID已存在则不能导入
--bug=1028084 --user=王旭 【系统设置】github#25529,【系统设置】-系统-用户:1、导入用户功能同一个ID、姓名、邮箱等内容重复导入提示“导入成功”没有做重复性校验; https://www.tapd.cn/55049933/s/1397863
This commit is contained in:
parent
a066000070
commit
4872ee619d
|
@ -88,6 +88,10 @@ public class UserDataListener extends EasyExcelListener<UserExcelData> {
|
|||
stringBuilder.append(Translator.get("user_import_id_too_long") + ";");
|
||||
}
|
||||
|
||||
if (savedUserId.contains(data.getId())) {
|
||||
stringBuilder.append(Translator.get("user_import_id_exist") + ";");
|
||||
}
|
||||
|
||||
if (data.getName().length() > 50 || data.getName().length() < 2) {
|
||||
stringBuilder.append(Translator.get("user_import_name_length_limit") + ";");
|
||||
}
|
||||
|
|
|
@ -7,4 +7,5 @@ plugin_parse_error=Plugin parse error
|
|||
plugin_type_error=Plugin type selection error!
|
||||
user_import_id_not_chinese=User id cannot be Chinese
|
||||
user_import_id_too_long=User ID length cannot exceed 50 characters
|
||||
user_import_name_length_limit=The name must be between 2-50 characters in length
|
||||
user_import_name_length_limit=The name must be between 2-50 characters in length
|
||||
user_import_id_exist=User ID already exists
|
|
@ -8,3 +8,4 @@ plugin_type_error=插件类型选择错误!
|
|||
user_import_id_not_chinese=用户ID不能为中文
|
||||
user_import_id_too_long=用户ID长度不能超过50个字符
|
||||
user_import_name_length_limit=姓名长度必须在2-50个字符之间
|
||||
user_import_id_exist=用户ID已存在
|
||||
|
|
|
@ -7,4 +7,5 @@ plugin_parse_error=插件解析失敗!
|
|||
plugin_type_error=插件類型選擇錯誤!
|
||||
user_import_id_not_chinese=用戶id不能為中文
|
||||
user_import_id_too_long=用戶ID長度不能超過50個字符
|
||||
user_import_name_length_limit=姓名長度必須在2-50個字符之間
|
||||
user_import_name_length_limit=姓名長度必須在2-50個字符之間
|
||||
user_import_id_exist=用戶ID已存在
|
Loading…
Reference in New Issue