feat: 默认语言为中文

This commit is contained in:
taojinlong 2021-05-21 17:33:47 +08:00
parent ad29a59583
commit 20d9f5ef9c
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,9 @@ public class SysUserService {
}else{
user.setPassword(CodingUtil.md5(user.getPassword()));
}
if(StringUtils.isEmpty(user.getLanguage())){
user.setLanguage("zh_CN");
}
int insert = sysUserMapper.insert(user);
SysUser dbUser = findOne(user);
saveUserRoles(dbUser.getUserId(), request.getRoleIds());//插入用户角色关联

View File

@ -51,8 +51,8 @@ INSERT INTO `sys_menu` VALUES (52, 0, 0, 1, '关于', 'about', 'system/about/ind
COMMIT;
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 (19, 25, 'demo', 'demo', '', NULL, 'demo@fit2cloud.com', '40b8893ea9ebc2d631c4bb42bb1e8996', b'0', 0, NULL, NULL, NULL, 1619086036234, 1619086036234,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,'zh_CN');
COMMIT;