Commit 810fe9c9 authored by 332784038@qq.com's avatar 332784038@qq.com

sql修复

parent 22dabe4b
...@@ -157,20 +157,20 @@ ...@@ -157,20 +157,20 @@
</if> </if>
<if test="query.dynamicShipmentStateList != null and query.dynamicShipmentStateList.size()>0"> <if test="query.dynamicShipmentStateList != null and query.dynamicShipmentStateList.size()>0">
<if test="query.dynamicShipmentStateList.size()==1 "> <if test="query.dynamicShipmentStateList.size()==1 ">
AND o.`shipment_State` = or o.`shipment_State` =
<foreach item='shipmentState' index="index" collection='query.dynamicShipmentStateList' > <foreach item='shipmentState' index="index" collection='query.dynamicShipmentStateList' >
#{shipmentState} #{shipmentState}
</foreach> </foreach>
</if> </if>
<if test="query.dynamicShipmentStateList.size()>1 "> <if test="query.dynamicShipmentStateList.size()>1 ">
AND o.`shipment_State` in or o.`shipment_State` in
<foreach item='shipmentState' index="index" collection='query.dynamicShipmentStateList' open='(' separator=',' close=')'> <foreach item='shipmentState' index="index" collection='query.dynamicShipmentStateList' open='(' separator=',' close=')'>
#{shipmentState} #{shipmentState}
</foreach> </foreach>
</if> </if>
</if> </if>
<if test="query.dynamicTransportIdList != null and query.dynamicTransportIdList.size() > 0"> <if test="query.dynamicTransportIdList != null and query.dynamicTransportIdList.size() > 0">
o.`transport_id` in or o.`transport_id` in
<foreach item='transportId' index='index' collection='query.dynamicTransportIdList' open='(' separator=',' close=')'> <foreach item='transportId' index='index' collection='query.dynamicTransportIdList' open='(' separator=',' close=')'>
#{transportId} #{transportId}
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment