Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a6c34b91
Commit
a6c34b91
authored
Sep 15, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
07bb6a9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+6
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
a6c34b91
...
...
@@ -241,7 +241,7 @@ public class MonitorFanIdxController extends BaseController {
}
String
num
=
monitorFanIndicator
.
getFJCount
(
gatewayId
);
columnMap
.
put
(
"风机台数"
,
num
);
columnMap
.
put
(
"风机台数"
,
Double
.
valueOf
(
num
).
intValue
()
);
Double
capacityl
=
commonServiceImpl
.
getStationCapactityByStationWerks
(
stationBasic
.
getStationNumber
());
columnMap
.
put
(
"装机容量"
,
String
.
format
(
"%.2f"
,
capacityl
));
...
...
@@ -256,16 +256,17 @@ public class MonitorFanIdxController extends BaseController {
for
(
Map
map
:
list
)
{
String
key
=
map
.
get
(
"title"
).
toString
();
if
(
map
.
containsKey
(
"action"
)){
map
.
put
(
"title"
,
columnMap
.
get
(
key
)==
null
?
0.00
:
columnMap
.
get
(
key
));
map
.
put
(
"title2"
,
map
.
get
(
"title"
));
if
(
key
.
equals
(
"日利用小时"
)){
map
.
put
(
"title"
,
map
.
get
(
"action"
).
toString
().
replace
(
"*"
,
"日发电量"
).
replace
(
"-"
,
"装机容量"
));
String
format
=
String
.
format
(
"%.2f"
,
((
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())*
10
)/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
()))));
map
.
put
(
"title"
,
format
);
map
.
put
(
"title2"
,
map
.
get
(
"title"
));
}
else
{
map
.
put
(
"title"
,
map
.
get
(
"action"
).
toString
().
replace
(
"*"
,
columnMap
.
get
(
key
).
toString
()
));
map
.
put
(
"title"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
key
).
toString
())/
1000
));
map
.
put
(
"title2"
,
map
.
get
(
"title"
));
}
}
map
.
put
(
"title"
,
columnMap
.
get
(
key
)==
null
?
0.00
:
columnMap
.
get
(
key
));
map
.
put
(
"title2"
,
map
.
get
(
"title"
));
}
...
...
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