|
|
@@ -102,9 +102,6 @@
|
|
|
<if test="params.startChargeSeq != null and params.startChargeSeq != ''">
|
|
|
and t1.start_charge_seq = #{params.startChargeSeq}
|
|
|
</if>
|
|
|
- <if test="params.stationId != null and params.stationId != ''">
|
|
|
- and t1.station_id = #{params.stationId}
|
|
|
- </if>
|
|
|
<if test="params.orderStatus != null">
|
|
|
and t1.order_status = #{params.orderStatus}
|
|
|
</if>
|
|
|
@@ -114,6 +111,12 @@
|
|
|
<if test="params.endDate != null">
|
|
|
and t1.start_time <= #{params.endDate}
|
|
|
</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=",">
|
|
|
+ #{stationId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -153,9 +156,6 @@
|
|
|
<if test="params.connectorId != null and params.connectorId != ''">
|
|
|
and t1.connector_id = #{params.connectorId}
|
|
|
</if>
|
|
|
- <if test="params.stationId != null and params.stationId != ''">
|
|
|
- and t1.station_id = #{params.stationId}
|
|
|
- </if>
|
|
|
<if test="params.startChargeSeq != null and params.startChargeSeq != ''">
|
|
|
and t1.start_charge_seq = #{params.startChargeSeq}
|
|
|
</if>
|
|
|
@@ -177,13 +177,19 @@
|
|
|
<if test="params.stopReason != null">
|
|
|
and t1.stop_reason = #{params.stopReason}
|
|
|
</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=",">
|
|
|
+ #{stationId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by t1.id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="stationStat" resultMap="StationStatMap" parameterType="com.kym.entity.admin.queryParams.StatQueryParam">
|
|
|
SELECT
|
|
|
- <if test="params.stationId != null and params.stationId != ''">
|
|
|
+ <if test="params.stationIds != null and params.stationId != ''">
|
|
|
t1.station_id,
|
|
|
</if>
|
|
|
<if test="params.type == null or params.type == 'day'">
|