|
|
@@ -131,7 +131,7 @@
|
|
|
and DATE( tr.create_time ) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<choose>
|
|
|
- <when test="ids != null">
|
|
|
+ <when test="ids != null and ids != '' and ids.size() > 0">
|
|
|
and tr.id in
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
#{id,jdbcType=BIGINT}
|
|
|
@@ -197,7 +197,7 @@
|
|
|
and DATE( tr.create_time ) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<choose>
|
|
|
- <when test="ids != null">
|
|
|
+ <when test="ids != null and ids != '' and ids.size() > 0">
|
|
|
and tr.id in
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
#{id,jdbcType=BIGINT}
|
|
|
@@ -253,7 +253,7 @@
|
|
|
and DATE( tr.create_time ) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<choose>
|
|
|
- <when test="truckNos != null and truckNos != ''">
|
|
|
+ <when test="truckNos != null and truckNos != '' and truckNos.size() > 0">
|
|
|
and tr.truck_no in
|
|
|
<foreach collection="truckNos" item="truckNo" open="(" close=")" separator=",">
|
|
|
#{truckNo,jdbcType=VARCHAR}
|
|
|
@@ -320,7 +320,7 @@
|
|
|
from kwf_truck
|
|
|
where del_flag = 0
|
|
|
<choose>
|
|
|
- <when test="entIds != null and entIds.size() > 0">
|
|
|
+ <when test="truckNos != null and truckNos != '' and truckNos.size() > 0">
|
|
|
and ent_id in
|
|
|
<foreach collection="entIds" item="item" open="(" close=")" separator=",">
|
|
|
#{item,jdbcType=BIGINT}
|