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
5bd8c52f
Commit
5bd8c52f
authored
May 17, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口报错
parent
f54833e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
JpInverterServiceImpl.java
...t/module/hygf/biz/service/impl/JpInverterServiceImpl.java
+11
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpInverterServiceImpl.java
View file @
5bd8c52f
...
...
@@ -432,11 +432,16 @@ public class JpInverterServiceImpl extends BaseService<JpInverterDto, JpInverter
public
Map
<
String
,
Object
>
jpInverterTotal
(
String
snCode
,
String
thirdStationId
,
String
time
,
String
date
)
{
if
(
date
.
equals
(
"day"
)){
Map
<
String
,
Object
>
map
=
tdHYGFInverterMonthGenerateMapper
.
selectMonthTotal
(
time
,
snCode
,
thirdStationId
);
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
null
));
if
(
map
!=
null
)
{
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
0
));
}
return
map
;
}
else
if
(
date
.
equals
(
"month"
)){
Map
<
String
,
Object
>
map
=
tdHYGFInverterYearGenerateMapper
.
selectYearTotal
(
time
,
snCode
,
thirdStationId
);
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
null
));
if
(
map
!=
null
)
{
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
null
));
}
return
map
;
}
else
if
(
date
.
equals
(
"year"
)){
List
<
TdHYGFInverterTotalGenerate
>
tdHYGFInverterTotalGenerates
=
tdHYGFInverterYearGenerateMapper
.
selectTotalSum
(
time
,
snCode
,
thirdStationId
);
...
...
@@ -445,7 +450,10 @@ public class JpInverterServiceImpl extends BaseService<JpInverterDto, JpInverter
TdHYGFInverterTotalGenerate
tdHYGFInverterTotalGenerate
=
tdHYGFInverterTotalGenerates
.
get
(
0
);
Map
<
String
,
Object
>
map
=
Bean
.
BeantoMap
(
tdHYGFInverterTotalGenerate
);
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
null
));
if
(
map
!=
null
)
{
map
.
put
(
"fullhour"
,
String
.
format
(
"%.2f"
,
map
!=
null
?
Double
.
valueOf
(
map
.
get
(
"fullhour"
).
toString
()):
null
));
}
return
map
;
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
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