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
0bc9c411
Commit
0bc9c411
authored
May 30, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计划发电量问题修复 bug修复
parent
d6f08601
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
McbWarningMapper.xml
...pi/src/main/resources/mapper/warning/McbWarningMapper.xml
+2
-2
AppletMonitorServiceImpl.java
...dule/jxiop/biz/service/impl/AppletMonitorServiceImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/warning/McbWarningMapper.xml
View file @
0bc9c411
...
@@ -254,8 +254,8 @@
...
@@ -254,8 +254,8 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"completionStatus != null"
>
<if
test=
"completionStatus != null
and completionStatus == 0
"
>
AND question.COMPLETION_STATUS
= #{completionStatus}
AND question.COMPLETION_STATUS
in (0,2)
</if>
</if>
<if
test=
"startTime != null and startTime != ''"
>
<if
test=
"startTime != null and startTime != ''"
>
AND question.CREATE_DATE
>
= concat(#{startTime}, ' 00:00:00')
AND question.CREATE_DATE
>
= concat(#{startTime}, ' 00:00:00')
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/AppletMonitorServiceImpl.java
View file @
0bc9c411
...
@@ -95,7 +95,7 @@ public class AppletMonitorServiceImpl {
...
@@ -95,7 +95,7 @@ public class AppletMonitorServiceImpl {
data
.
put
(
"value"
,
stationMark
.
get
(
"value"
));
data
.
put
(
"value"
,
stationMark
.
get
(
"value"
));
double
yearPower
=
planPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
double
yearPower
=
planPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
Double
monthPower
=
planPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
DateUtils
.
getMonth
(
new
Date
(
)))).
findFirst
().
get
().
getValue
();
Double
monthPower
=
planPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
String
.
valueOf
(
DateUtils
.
getMonth
(
new
Date
()
)))).
findFirst
().
get
().
getValue
();
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
data
.
put
(
"yearPower"
,
yearPower
);
data
.
put
(
"yearPower"
,
yearPower
);
data
.
put
(
"monthPower"
,
monthPower
);
data
.
put
(
"monthPower"
,
monthPower
);
...
@@ -162,7 +162,7 @@ public class AppletMonitorServiceImpl {
...
@@ -162,7 +162,7 @@ public class AppletMonitorServiceImpl {
//计划发电量
//计划发电量
List
<
StationPlan
>
planPower
=
stationPlanMapper
.
getPlanGenByStationIdAndYear
(
String
.
valueOf
(
stationBasic
.
getSequenceNbr
()),
String
.
valueOf
(
DateUtils
.
getYear
(
new
Date
())));
List
<
StationPlan
>
planPower
=
stationPlanMapper
.
getPlanGenByStationIdAndYear
(
String
.
valueOf
(
stationBasic
.
getSequenceNbr
()),
String
.
valueOf
(
DateUtils
.
getYear
(
new
Date
())));
double
yearPower
=
planPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
double
yearPower
=
planPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
Double
monthPower
=
planPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
DateUtils
.
getMonth
(
new
Date
(
)))).
findFirst
().
get
().
getValue
();
Double
monthPower
=
planPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
String
.
valueOf
(
DateUtils
.
getMonth
(
new
Date
()
)))).
findFirst
().
get
().
getValue
();
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
data
.
put
(
"yearPower"
,
yearPower
);
data
.
put
(
"yearPower"
,
yearPower
);
data
.
put
(
"monthPower"
,
monthPower
);
data
.
put
(
"monthPower"
,
monthPower
);
...
@@ -252,7 +252,7 @@ public class AppletMonitorServiceImpl {
...
@@ -252,7 +252,7 @@ public class AppletMonitorServiceImpl {
String
join
=
String
.
join
(
","
,
collect1
);
String
join
=
String
.
join
(
","
,
collect1
);
List
<
StationPlan
>
plansPower
=
stationPlanMapper
.
getPlansGenByStationIdAndYear
(
join
,
String
.
valueOf
(
DateUtils
.
getYear
(
new
Date
())));
List
<
StationPlan
>
plansPower
=
stationPlanMapper
.
getPlansGenByStationIdAndYear
(
join
,
String
.
valueOf
(
DateUtils
.
getYear
(
new
Date
())));
double
yearPower
=
plansPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
double
yearPower
=
plansPower
.
stream
().
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
Double
monthPower
=
plansPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
DateUtils
.
getMonth
(
new
Date
(
)))).
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
Double
monthPower
=
plansPower
.
stream
().
filter
(
e
->
e
.
getMonthly
().
equals
(
String
.
valueOf
(
DateUtils
.
getMonth
(
new
Date
()
)))).
mapToDouble
(
StationPlan:
:
getValue
).
sum
();
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
double
dayPower
=
monthPower
/
DateUtils
.
getDaysOfMonth
(
new
Date
());
result
.
put
(
"yearPower"
,
yearPower
);
result
.
put
(
"yearPower"
,
yearPower
);
result
.
put
(
"monthPower"
,
monthPower
);
result
.
put
(
"monthPower"
,
monthPower
);
...
...
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