|
|
@ -116,7 +116,9 @@ |
|
|
|
left join bus_sales_order bo on bv.salesOrderSid = bo.sid |
|
|
|
left join anrui_base.base_vehicle_state bs on bs.busSid = bv.sid |
|
|
|
where bo.contractNo = #{contractId} |
|
|
|
and (bs.busState != '401' or bs.busState != '403') and (bs.finState != '1' or bs.carryVehicleState != '1') |
|
|
|
and (bs.busState = '401' |
|
|
|
or bs.busState = '403') and (bs.finState != '1' |
|
|
|
and bs.carryVehicleState != '1') |
|
|
|
and bv.linkSid in |
|
|
|
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|