Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
0e271fcb
Commit
0e271fcb
authored
Dec 23, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
0f865058
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/HomePageService.java
...ain/java/pps/core/prediction/service/HomePageService.java
+6
-6
No files found.
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/HomePageService.java
View file @
0e271fcb
...
...
@@ -202,13 +202,13 @@ public class HomePageService {
case
BusinessConstant
.
ENV_CQ
:
QueryWrapper
<
ThirdDailyAccumulationUpdateEnt
>
queryWrapper
=
new
QueryWrapper
<>();
if
(
CharSequenceUtil
.
equals
(
context
.
getProperty
(
"x.db.databaseId"
),
BusinessConstant
.
ORACLE
))
{
queryWrapper
.
select
(
"NVL( ROUND( SUM(
photovoltaic_power ), 2 ), 0 ) AS photovoltaic_power
"
,
"NVL( ROUND( SUM(
daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption
"
,
"NVL( ROUND( SUM(
daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production
"
);
queryWrapper
.
select
(
"NVL( ROUND( SUM(
PHOTOVOLTAIC_POWER ), 2 ), 0 ) AS PHOTOVOLTAIC_POWER
"
,
"NVL( ROUND( SUM(
DAILY_ELECTRICITY_CONSUMPTION ), 2 ), 0 ) AS DAILY_ELECTRICITY_CONSUMPTION
"
,
"NVL( ROUND( SUM(
DAILY_LIQUID_PRODUCTION ), 2 ), 0 ) AS DAILY_LIQUID_PRODUCTION
"
);
}
else
{
queryWrapper
.
select
(
"IFNULL( ROUND( SUM(
photovoltaic_power ), 2 ), 0 ) AS photovoltaic_power
"
,
"IFNULL( ROUND( SUM(
daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption
"
,
"IFNULL( ROUND( SUM(
daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production
"
);
queryWrapper
.
select
(
"IFNULL( ROUND( SUM(
PHOTOVOLTAIC_POWER ), 2 ), 0 ) AS PHOTOVOLTAIC_POWER
"
,
"IFNULL( ROUND( SUM(
DAILY_ELECTRICITY_CONSUMPTION ), 2 ), 0 ) AS DAILY_ELECTRICITY_CONSUMPTION
"
,
"IFNULL( ROUND( SUM(
DAILY_LIQUID_PRODUCTION ), 2 ), 0 ) AS DAILY_LIQUID_PRODUCTION
"
);
}
//实时站
ThirdDailyAccumulationUpdateMapper
mapper
=
context
.
getBean
(
ThirdDailyAccumulationUpdateMapper
.
class
);
...
...
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