|
@@ -758,7 +758,16 @@
|
|
|
iq.is_deleted = 0
|
|
|
and iq.classify = #{query.classify}
|
|
|
and iq.contract_id = #{query.contractId}
|
|
|
- <if test="query.taskStatus != null and query.taskStatus != ''">and iq.status = #{query.taskStatus}</if>
|
|
|
+ <if test="query.taskStatus != null and query.taskStatus != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="query.taskStatus == 0">
|
|
|
+ and (iq.status = 0 or iq.status = 3)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and iq.status = #{query.taskStatus}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test="query.sourceType != null and query.sourceType != ''">and iq.source_type = #{query.sourceType}</if>
|
|
|
<if test="query.reportNumber != null and query.reportNumber != ''">and t.batch = #{query.reportNumber}</if>
|
|
|
<if test="query.fileUserIdAndName != null and query.fileUserIdAndName != ''">and iq.file_user_id_and_name like
|