|
|
@@ -144,6 +144,7 @@
|
|
|
<result property="fastCharging" column="fast_charging"/>
|
|
|
<result property="slowCharging" column="slow_charging"/>
|
|
|
<result property="peakValue" column="peak_value"/>
|
|
|
+ <result property="peakTime" column="peak_time"/>
|
|
|
<result property="platformPrice" column="platform_price"/>
|
|
|
<result property="enterprisePrice" column="enterprise_price"/>
|
|
|
</resultMap>
|
|
|
@@ -194,6 +195,17 @@
|
|
|
ORDER BY tppi.start_time DESC
|
|
|
LIMIT 1
|
|
|
) AS peak_value,
|
|
|
+ <!-- 峰时段时间(period_flag=2为峰时段) -->
|
|
|
+ (
|
|
|
+ SELECT tppi.start_time
|
|
|
+ FROM third_party_policy_info tppi
|
|
|
+ INNER JOIN third_party_equipment_price_policy tpepp ON tppi.price_policy_id = tpepp.id AND tpepp.is_deleted = 0
|
|
|
+ INNER JOIN third_party_connector_info tpci5 ON tpepp.connector_id = tpci5.connector_id AND tpci5.is_deleted = 0
|
|
|
+ WHERE tpci5.station_id = tpsi.station_id
|
|
|
+ AND tppi.is_deleted = 0
|
|
|
+ AND tppi.period_flag = 2
|
|
|
+ LIMIT 1
|
|
|
+ ) AS peak_time,
|
|
|
<!-- 平台价(电费+服务费+运营费+综合销售费) -->
|
|
|
(
|
|
|
SELECT
|