|
|
@@ -111,6 +111,11 @@
|
|
|
<if test="params.endDate != null">
|
|
|
and t1.start_time <= #{params.endDate}
|
|
|
</if>
|
|
|
+ <if test="params.platformName != null and params.platformName != ''">
|
|
|
+ and t1.station_id IN (
|
|
|
+ SELECT station_id FROM t_equipment_relation WHERE platform_name = #{params.platformName}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="params.stationIds != null and params.stationIds.size() > 0">
|
|
|
and t1.station_id IN
|
|
|
<foreach collection="params.stationIds" item="stationId" index="index" open="(" close=")" separator=",">
|
|
|
@@ -177,6 +182,11 @@
|
|
|
<if test="params.stopReason != null">
|
|
|
and t1.stop_reason = #{params.stopReason}
|
|
|
</if>
|
|
|
+ <if test="params.platformName != null and params.platformName != ''">
|
|
|
+ and t1.station_id IN (
|
|
|
+ SELECT station_id FROM t_equipment_relation WHERE platform_name = #{params.platformName}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="params.stationIds != null and params.stationIds.size() > 0">
|
|
|
and t1.station_id IN
|
|
|
<foreach collection="params.stationIds" item="stationId" index="index" open="(" close=")" separator=",">
|