feat: Refactor user ID card update logic and add corresponding database mapping

This commit is contained in:
2026-07-16 19:20:28 +08:00
parent 69f8e8d340
commit f07b5f77cd
3 changed files with 12 additions and 10 deletions

View File

@@ -129,6 +129,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
limit 1
</select>
<update id="updateSysUserIdCard">
update sys_user
set id_card = #{idCard},
update_time = sysdate()
where user_id = #{userId}
</update>
<select id="selectUserApplyList" parameterType="AppUser" resultType="com.ruoyi.common.core.domain.entity.AppUserShow">
select a.user_id , a.name , a.age , a.sex , get_birth_date_from_id_card ( a.id_card ) as birth_date ,
a.education , a.political_affiliation , a.phone , a.avatar , c.min_salary salaryMin ,c.max_salary salaryMax,a.area ,a.id_card ,
@@ -149,4 +156,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by b.create_time desc
</select>
</mapper>
</mapper>