This commit is contained in:
zt
2025-03-13 18:04:13 +08:00
parent ee0411263f
commit eeada32164
8 changed files with 42 additions and 21 deletions

View File

@ -45,9 +45,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="userReplacementCardRecordDetails" resultType="com.ruoyi.wgz.bo.res.WgzAppUserReplacementCardRecordDetailsRes">
SELECT
a.*,
b.username,
b.avatar_name,
c.username as userName
b.username as auditorname,
b.avatar_name as auditorHead,
c.username as userName,
c.avatar_name
FROM
wgz_reissueacard a
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)
@ -73,10 +74,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.auditor_user_id = #{dto.auditorUserId}
and a.recruit_id in (select id from bgt_project_recruit where task_id = #{dto.taskId})
<if test="dto.auditorType != null and dto.auditorType != ''">
and w.auditor_type = #{dto.auditorType}
and a.auditor_type = #{dto.auditorType}
</if>
<if test="dto.nowTime != null">
and w.now_time = #{dto.nowTime}
and date(a.create_time) = #{dto.nowTime}
</if>
ORDER BY
a.id DESC