Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
a69b9de5
Commit
a69b9de5
authored
Aug 02, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监控表
parent
cf771308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MonthPowerMapper.xml
...i/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
+6
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
View file @
a69b9de5
...
@@ -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_powe
r where year=#{date} GROUP BY tation_id
FROM house_pv_data.td_hygf_
station_power_yea
r 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_powe
r where tation_id in
FROM house_pv_data.td_hygf_
station_power_yea
r 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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment