Commit a69b9de5 authored by wujiang's avatar wujiang

修改监控表

parent cf771308
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
SELECT SELECT
sum(power) power, sum(power) power,
tation_id thirdStationId 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>
<select id="getSumYearPower" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.AllPower"> <select id="getSumYearPower" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.AllPower">
SELECT SELECT
sum(power) power, sum(power) power,
tation_id thirdStationId 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> </select>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
SELECT SELECT
sum(power)num, sum(power)num,
`day` date `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=")"> <foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
SELECT SELECT
sum(power)num, sum(power)num,
`month` date `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=")"> <foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
SELECT SELECT
sum(power)num, sum(power)num,
`year` date `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=")"> <foreach collection="dto" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
SELECT SELECT
sum(power)num, sum(power)num,
`hour` date `hour` date
FROM house_pv_data.td_hygf_day_power FROM house_pv_data.td_hygf_station_power_day
<where> <where>
<if test="dto!=null"> <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