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
f9db772a
Commit
f9db772a
authored
Aug 02, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
a69b9de5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
MonthPowerMapper.xml
...i/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
+10
-10
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
View file @
f9db772a
...
...
@@ -6,7 +6,7 @@
<select
id=
"getMonthPowerint"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.MonthPower"
>
SELECT
avg(power) power,
third_station_id thirdStationId
third_st
hird_st
ation_id thirdStationId
FROM house_pv_data.td_hygf_jp_station_power_history where created_time
<![CDATA[>=]]>
today()-1d-8h and created_time
<![CDATA[<]]>
today()-8h GROUP BY third_station_id
</select>
...
...
@@ -14,15 +14,15 @@
<select
id=
"getSumMonthPower"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.YearPower"
>
SELECT
sum(power) power,
tation_id thirdStationId
FROM house_pv_data.td_hygf_station_power_month where year_month=#{date} GROUP BY tation_id
t
hird_st
ation_id thirdStationId
FROM house_pv_data.td_hygf_station_power_month where year_month=#{date} GROUP BY t
hird_st
ation_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_station_power_year where year=#{date} GROUP BY tation_id
t
hird_st
ation_id thirdStationId
FROM house_pv_data.td_hygf_station_power_year where year=#{date} GROUP BY t
hird_st
ation_id
</select>
...
...
@@ -44,7 +44,7 @@
SELECT
sum(power)num,
`day` date
FROM house_pv_data.td_hygf_station_power_month where tation_id in
FROM house_pv_data.td_hygf_station_power_month where t
hird_st
ation_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_station_power_year where tation_id in
FROM house_pv_data.td_hygf_station_power_year where t
hird_st
ation_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_station_power_all where tation_id in
FROM house_pv_data.td_hygf_station_power_all where t
hird_st
ation_id in
<foreach
collection=
"dto"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
...
...
@@ -81,14 +81,14 @@
<where>
<if
test=
"dto!=null"
>
tation_id in
t
hird_st
ation_id in
<foreach
collection=
"dto"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
and tation_id = #{thirdStationId}
and t
hird_st
ation_id = #{thirdStationId}
</if>
</where>
...
...
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