app_user 添加ytjPassword字段

This commit is contained in:
sh
2025-11-05 13:16:11 +08:00
parent 603c33e648
commit 1e404a53eb
3 changed files with 9 additions and 0 deletions

View File

@@ -219,6 +219,10 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
//保存sys_user_role
mapUserRole.put("userId",sysUser.getUserId());
appUserMapper.insertSysUserRole(mapUserRole);
//一体机密码
if(StringUtils.isNotEmpty(appUser.getYtjPassword())){
appUser.setYtjPassword(SiteSecurityUtils.encryptPassword(appUser.getYtjPassword()));
}
appUserMapper.updateById(appUser);
return appUser;
}