优化
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user