This commit is contained in:
zt
2025-03-19 19:56:10 +08:00
parent 4d0bd41431
commit 6553cc2b59
3 changed files with 26 additions and 2 deletions

View File

@ -73,8 +73,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="dto.username != null and dto.username != ''">
and wu.username like concat('%', #{dto.username}, '%')
</if>
<if test="dto.auditorType != null and dto.auditorType != ''">
and wdc.auditor_type = #{dto.auditorType}
<if test="dto.auditorType != null and dto.auditorType != '' ">
<choose>
<when test="dto.isRead">
and wdc.status = '0' and wdc.auditor_type ='1'
</when>
<when test="dto.isAudit">
and wdc.auditor_type = '1' and wdc.status = '1'
</when>
<otherwise>
and wdc.auditor_type = #{dto.auditorType}
</otherwise>
</choose>
</if>
<if test="dto.dilyTime != null">
and DATE(wdc.dily_time) = #{dto.dilyTime}