|
|
@@ -195,9 +195,24 @@
|
|
|
ORDER BY tppi.start_time DESC
|
|
|
LIMIT 1
|
|
|
) AS peak_value,
|
|
|
- <!-- 峰时段时间(period_flag=2为峰时段) -->
|
|
|
+ <!-- 峰时段时间(period_flag=2为峰时段),格式: HH:mm - HH:mm -->
|
|
|
(
|
|
|
- SELECT tppi.start_time
|
|
|
+ SELECT CONCAT(
|
|
|
+ CONCAT(SUBSTRING(tppi.start_time, 1, 2), ':', SUBSTRING(tppi.start_time, 3, 2)),
|
|
|
+ ' - ',
|
|
|
+ IFNULL(
|
|
|
+ (
|
|
|
+ SELECT CONCAT(SUBSTRING(next_tppi.start_time, 1, 2), ':', SUBSTRING(next_tppi.start_time, 3, 2))
|
|
|
+ FROM third_party_policy_info next_tppi
|
|
|
+ WHERE next_tppi.price_policy_id = tppi.price_policy_id
|
|
|
+ AND next_tppi.is_deleted = 0
|
|
|
+ AND next_tppi.start_time > tppi.start_time
|
|
|
+ ORDER BY next_tppi.start_time ASC
|
|
|
+ LIMIT 1
|
|
|
+ ),
|
|
|
+ '24:00'
|
|
|
+ )
|
|
|
+ )
|
|
|
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
|