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
12e37cb4
Commit
12e37cb4
authored
Dec 17, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
5f696655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
C11-space/pps-core-space/src/main/java/pps/core/space/service/DailyElectricityTrendCloudServiceImpl.java
.../space/service/DailyElectricityTrendCloudServiceImpl.java
+4
-4
No files found.
C11-space/pps-core-space/src/main/java/pps/core/space/service/DailyElectricityTrendCloudServiceImpl.java
View file @
12e37cb4
...
...
@@ -276,8 +276,8 @@ public class DailyElectricityTrendCloudServiceImpl implements IDailyElectricityT
public
XSingleResult
<
GetLineDailyElectricityTrendOutput
>
querySumDailyElectricity
(
XContext
context
,
GetLineDailyElectricityTrendInput
input
)
{
LineDailyElectricityTrendMapper
mapper
=
context
.
getBean
(
LineDailyElectricityTrendMapper
.
class
);
LineDailyElectricityTrendEnt
ent
=
mapper
.
selectOne
(
new
QueryWrapper
<
LineDailyElectricityTrendEnt
>()
.
select
(
"IFNULL( SUM(
valley_electric_open_hour ), 0 ) AS valley_electric_open_hour
"
,
"IFNULL( SUM(
sum_run_duration ), 0 ) AS sum_run_duration
"
)
.
select
(
"IFNULL( SUM(
VALLEY_ELECTRIC_OPEN_HOUR ), 0 ) AS VALLEY_ELECTRIC_OPEN_HOUR
"
,
"IFNULL( SUM(
SUM_RUN_DURATION ), 0 ) AS SUM_RUN_DURATION
"
)
.
lambda
()
.
eq
(
LineDailyElectricityTrendEnt:
:
getSystemSource
,
input
.
getSystemSource
())
.
in
(
LineDailyElectricityTrendEnt:
:
getStationName
,
input
.
getStationNameList
())
...
...
@@ -364,8 +364,8 @@ public class DailyElectricityTrendCloudServiceImpl implements IDailyElectricityT
public
XSingleResult
<
GetWellDailyElectricityTrendOutput
>
queryWellDailyAverage
(
XContext
context
,
GetWellDailyAverageInput
input
)
{
WellDailyElectricityTrendMapper
mapper
=
context
.
getBean
(
WellDailyElectricityTrendMapper
.
class
);
WellDailyElectricityTrendEnt
ent
=
mapper
.
selectOne
(
new
QueryWrapper
<
WellDailyElectricityTrendEnt
>()
.
select
(
"IFNULL( ROUND( AVG(
daily_electricity_consumption ), 2 ), 0 ) AS daily_electricity_consumption
"
,
"IFNULL( ROUND( AVG(
daily_liquid_production ), 2 ), 0 ) AS daily_liquid_production
"
)
.
select
(
"IFNULL( ROUND( AVG(
DAILY_ELECTRICITY_CONSUMPTION ), 2 ), 0 ) AS DAILY_ELECTRICITY_CONSUMPTION
"
,
"IFNULL( ROUND( AVG(
DAILY_LIQUID_PRODUCTION ), 2 ), 0 ) AS DAILY_LIQUID_PRODUCTION
"
)
.
lambda
()
.
eq
(
WellDailyElectricityTrendEnt:
:
getSystemSource
,
input
.
getSystemSource
())
.
in
(
WellDailyElectricityTrendEnt:
:
getWellNumber
,
input
.
getWellNumberList
())
...
...
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