删除一个重复查询的条件

This commit is contained in:
panshuling321 2022-06-28 10:22:46 +08:00
parent 2e1620e51f
commit a38d45a52d

View File

@ -277,12 +277,9 @@
<if test="params.stationId!=null and params.stationId!=''">
and ho.charging_station_id=#{params.stationId}
</if>
<if test="params.checkoutIds!=null and params.checkoutIds!=''">
<if test="params.checkoutIds!=null and params.checkoutIds!='' and params.checkoutIds!='-1'">
and find_in_set(ho.clearing_checkout_id, #{params.checkoutIds})
</if>
<if test="params.orderIds!=null and params.orderIds!=''">
and find_in_set(ho.clearing_order_id, #{params.orderIds})
</if>
<if test="params.operatorId !=null and params.operatorId !=''">
and ho.operator_id =#{params.operatorId}