app_user 添加ytjPassword字段
This commit is contained in:
@@ -219,6 +219,10 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
|||||||
//保存sys_user_role
|
//保存sys_user_role
|
||||||
mapUserRole.put("userId",sysUser.getUserId());
|
mapUserRole.put("userId",sysUser.getUserId());
|
||||||
appUserMapper.insertSysUserRole(mapUserRole);
|
appUserMapper.insertSysUserRole(mapUserRole);
|
||||||
|
//一体机密码
|
||||||
|
if(StringUtils.isNotEmpty(appUser.getYtjPassword())){
|
||||||
|
appUser.setYtjPassword(SiteSecurityUtils.encryptPassword(appUser.getYtjPassword()));
|
||||||
|
}
|
||||||
appUserMapper.updateById(appUser);
|
appUserMapper.updateById(appUser);
|
||||||
return 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="createBy != null and createBy != ''">create_by,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
<if test="idCard != null and idCard != ''">id_card,</if>
|
<if test="idCard != null and idCard != ''">id_card,</if>
|
||||||
|
<if test="ytjPassword != null and ytjPassword != ''">ytj_password,</if>
|
||||||
create_time
|
create_time
|
||||||
)values(
|
)values(
|
||||||
<if test="userId != null and userId != ''">#{userId},</if>
|
<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="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
<if test="idCard != null and idCard != ''">#{idCard},</if>
|
<if test="idCard != null and idCard != ''">#{idCard},</if>
|
||||||
|
<if test="ytjPassword != null and ytjPassword != ''">#{ytjPassword},</if>
|
||||||
sysdate()
|
sysdate()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|||||||
@@ -149,4 +149,7 @@ public class AppUser extends BaseEntity
|
|||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private MyChart myChart;
|
private MyChart myChart;
|
||||||
|
|
||||||
|
@ApiModelProperty("一体机密码")
|
||||||
|
private String ytjPassword;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user