|
|
@@ -44,13 +44,13 @@
|
|
|
left join kwc_contract_trade_unit e on a.id = e.contract_id and e.unit_type != #{entType} and e.del_flag = 0
|
|
|
left join kwc_contract_trade f on f.id = a.contract_pid
|
|
|
where a.del_flag = 0
|
|
|
- and case when a.status = 3 then a.ent_id = #{entId} and #{entType} = 1
|
|
|
- else (b.ent_id in
|
|
|
- <foreach collection="allEnt" separator="," open="(" close=")" item="item">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- and b.id is not null)
|
|
|
- end
|
|
|
+<!-- and case when a.status = 3 then a.ent_id = #{entId} and #{entType} = 1-->
|
|
|
+<!-- else (b.ent_id in-->
|
|
|
+<!-- <foreach collection="allEnt" separator="," open="(" close=")" item="item">-->
|
|
|
+<!-- #{item}-->
|
|
|
+<!-- </foreach>-->
|
|
|
+<!-- and b.id is not null)-->
|
|
|
+<!-- end-->
|
|
|
<if test="startTime != null">
|
|
|
and a.create_time >= #{startTime}
|
|
|
</if>
|