app_user 添加ytjPassword字段
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user