|
@@ -70,6 +70,10 @@
|
|
|
and eb.work_order_id = t1.id
|
|
|
)
|
|
|
</if>
|
|
|
+ <if test="formTenantId != null">
|
|
|
+
|
|
|
+ and t9.from_tenant_id = #{formTenantId}
|
|
|
+ </if>
|
|
|
<if test="taskTypeName != null">
|
|
|
AND (CONCAT( t3.name,"-", t4.name) LIKE concat('%', #{taskTypeName}, '%') OR t1.remark LIKE concat('%',#{taskTypeName}, '%')
|
|
|
OR CONCAT(t3.name,"-",t6.alter_type,"-",t4.name) LIKE concat('%', #{taskTypeName}, '%'))
|
|
@@ -93,7 +97,28 @@
|
|
|
<if test="monthNum != null ">AND t1.month_num = #{monthNum}</if>
|
|
|
<if test="isStop != null ">AND t1.is_stop = #{isStop}</if>
|
|
|
<if test="resultStatus != null">AND t7.result_status = #{resultStatus}</if>
|
|
|
-
|
|
|
+ <if test="entrustTimeFilter != null">
|
|
|
+ and t7.deleted = 0
|
|
|
+ AND (
|
|
|
+ DATE_FORMAT(t9.create_time,'%Y-%m-%d') >= #{entrustTimeFilter[0]}
|
|
|
+ AND
|
|
|
+ DATE_FORMAT(t9.create_time,'%Y-%m-%d') <= #{entrustTimeFilter[1]}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="handlerTimeFilter != null">
|
|
|
+ AND (
|
|
|
+ DATE_FORMAT(t7.handler_time,'%Y-%m-%d') >= #{handlerTimeFilter[0]}
|
|
|
+ AND
|
|
|
+ DATE_FORMAT(t7.handler_time,'%Y-%m-%d') <= #{handlerTimeFilter[1]}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="finishTimeFilter != null">
|
|
|
+ AND (
|
|
|
+ DATE_FORMAT(t7.finish_time,'%Y-%m-%d') >= #{finishTimeFilter[0]}
|
|
|
+ AND
|
|
|
+ DATE_FORMAT(t7.finish_time,'%Y-%m-%d') <= #{finishTimeFilter[1]}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="companyName != null">AND t2.name like concat('%', #{companyName}, '%')</if>
|
|
|
</trim>
|
|
|
</select>
|