|
|
@@ -68,7 +68,7 @@
|
|
|
left join kwc_contract_logistics_track d on a.id = d.contract_id and d.del_flag = 0 and d.type = 0
|
|
|
left join kwc_contract_logistics_unit e on a.id = e.contract_id and e.unit_type != #{entType} and e.del_flag = 0
|
|
|
where a.del_flag = 0
|
|
|
- and case when a.status = 3 then a.ent_id = #{entId} and #{entType} = 3 else b.ent_id = #{entId} end
|
|
|
+ and case when a.status = 3 then a.ent_id = #{entId} and #{entType} = 3 else a.ent_id = #{entId} end
|
|
|
<if test="startTime != null">
|
|
|
and a.create_time >= #{startTime}
|
|
|
</if>
|