forked from github/dataease
feat: 默认语言为中文
This commit is contained in:
parent
ad29a59583
commit
20d9f5ef9c
@ -71,6 +71,9 @@ public class SysUserService {
|
|||||||
}else{
|
}else{
|
||||||
user.setPassword(CodingUtil.md5(user.getPassword()));
|
user.setPassword(CodingUtil.md5(user.getPassword()));
|
||||||
}
|
}
|
||||||
|
if(StringUtils.isEmpty(user.getLanguage())){
|
||||||
|
user.setLanguage("zh_CN");
|
||||||
|
}
|
||||||
int insert = sysUserMapper.insert(user);
|
int insert = sysUserMapper.insert(user);
|
||||||
SysUser dbUser = findOne(user);
|
SysUser dbUser = findOne(user);
|
||||||
saveUserRoles(dbUser.getUserId(), request.getRoleIds());//插入用户角色关联
|
saveUserRoles(dbUser.getUserId(), request.getRoleIds());//插入用户角色关联
|
||||||
|
@ -51,8 +51,8 @@ INSERT INTO `sys_menu` VALUES (52, 0, 0, 1, '关于', 'about', 'system/about/ind
|
|||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
INSERT INTO `sys_user` VALUES (4, 0, 'admin', '管理员', '男', NULL, 'admin@fit2cloud.com', '40b8893ea9ebc2d631c4bb42bb1e8996', b'1', 1, NULL, NULL, NULL, NULL, 1615184951534,NULL);
|
INSERT INTO `sys_user` VALUES (4, 0, 'admin', '管理员', '男', NULL, 'admin@fit2cloud.com', '40b8893ea9ebc2d631c4bb42bb1e8996', b'1', 1, NULL, NULL, NULL, NULL, 1615184951534,'zh_CN');
|
||||||
INSERT INTO `sys_user` VALUES (19, 25, 'demo', 'demo', '男', NULL, 'demo@fit2cloud.com', '40b8893ea9ebc2d631c4bb42bb1e8996', b'0', 0, NULL, NULL, NULL, 1619086036234, 1619086036234,NULL);
|
INSERT INTO `sys_user` VALUES (19, 25, 'demo', 'demo', '男', NULL, 'demo@fit2cloud.com', '40b8893ea9ebc2d631c4bb42bb1e8996', b'0', 0, NULL, NULL, NULL, 1619086036234, 1619086036234,'zh_CN');
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user