Commit a69b9de5 authored by wujiang's avatar wujiang

修改监控表

parent cf771308
......@@ -15,14 +15,14 @@
SELECT
sum(power) power,
tation_id thirdStationId
FROM house_pv_data.td_hygf_month_power where year_month=#{date} GROUP BY tation_id
FROM house_pv_data.td_hygf_station_power_month where year_month=#{date} GROUP BY tation_id
</select>
<select id="getSumYearPower" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.AllPower">
SELECT
sum(power) power,
tation_id thirdStationId
FROM house_pv_data.td_hygf_year_power where year=#{date} GROUP BY tation_id
FROM house_pv_data.td_hygf_station_power_year where year=#{date} GROUP BY tation_id
</select>
......@@ -44,7 +44,7 @@
SELECT
sum(power)num,
`day` date
FROM house_pv_data.td_hygf_month_power where tation_id in
FROM house_pv_data.td_hygf_station_power_month where tation_id in
<foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
......@@ -55,7 +55,7 @@
SELECT
sum(power)num,
`month` date
FROM house_pv_data.td_hygf_year_power where tation_id in
FROM house_pv_data.td_hygf_station_power_year where tation_id in
<foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
......@@ -66,7 +66,7 @@
SELECT
sum(power)num,
`year` date
FROM house_pv_data.td_hygf_all_power where tation_id in
FROM house_pv_data.td_hygf_station_power_all where tation_id in
<foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
......@@ -77,7 +77,7 @@
SELECT
sum(power)num,
`hour` date
FROM house_pv_data.td_hygf_day_power
FROM house_pv_data.td_hygf_station_power_day
<where>
<if test="dto!=null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment