1.添加手机号和身份证的安全性和保密性

2.添加对应的定时任务
This commit is contained in:
sh
2026-03-19 17:26:28 +08:00
parent e61cdafa9d
commit bbb106489e
40 changed files with 1321 additions and 52 deletions

View File

@@ -182,6 +182,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null and remark != ''">remark,</if>
<if test="idCard != null and idCard != ''">id_card,</if>
<if test="appUserId != null">app_user_id,</if>
<if test="phonenumberCipher != null">phonenumber_cipher,</if>
<if test="idCardCipher != null">id_card_cipher,</if>
<if test="phonenumberEncrypt != null">phonenumber_encrypt,</if>
<if test="idCardEncrypt != null">id_card_encrypt,</if>
create_time
)values(
<if test="userId != null and userId != ''">#{userId},</if>
@@ -198,6 +202,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null and remark != ''">#{remark},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="appUserId != null">#{appUserId},</if>
<if test="phonenumberCipher != null">#{phonenumberCipher},</if>
<if test="idCardCipher != null">#{idCardCipher},</if>
<if test="phonenumberEncrypt != null">#{phonenumberEncrypt},</if>
<if test="idCardEncrypt != null">#{idCardEncrypt},</if>
sysdate()
)
</insert>
@@ -219,6 +227,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="idCard != null">id_card = #{idCard},</if>
<if test="phonenumberCipher != null">phonenumber_cipher=#{phonenumberCipher},</if>
<if test="idCardCipher != null">id_card_cipher=#{idCardCipher},</if>
<if test="phonenumberEncrypt != null">phonenumber_encrypt=#{phonenumberEncrypt},</if>
<if test="idCardEncrypt != null">id_card_encrypt=#{idCardEncrypt},</if>
update_time = sysdate()
</set>
where user_id = #{userId}
@@ -250,5 +262,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUserByIdCard" resultType="com.ruoyi.common.core.domain.entity.SysUser">
<include refid="selectSysUserVo" /> where del_flag='0' and id_card = #{idCard} LIMIT 1
</select>
</mapper>

View File

@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="roleId" column="role_id" />
</resultMap>
<delete id="deleteUserRoleByUserId" parameterType="Long">
<delete id="deleteUserRoleByUserId" parameterType="java.lang.Long">
delete from sys_user_role where user_id=#{userId}
</delete>
@@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select count(1) from sys_user_role where role_id=#{roleId}
</select>
<delete id="deleteUserRole" parameterType="Long">
<delete id="deleteUserRole" parameterType="java.lang.Long">
delete from sys_user_role where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}