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;
}

View File

@@ -89,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="idCard != null and idCard != ''">id_card,</if>
<if test="ytjPassword != null and ytjPassword != ''">ytj_password,</if>
create_time
)values(
<if test="userId != null and userId != ''">#{userId},</if>
@@ -104,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="ytjPassword != null and ytjPassword != ''">#{ytjPassword},</if>
sysdate()
)
</insert>