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
6366f798
Commit
6366f798
authored
Jul 31, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
c15c17ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+11
-11
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
6366f798
...
...
@@ -598,17 +598,17 @@ public class MonitorFanIdxController extends BaseController {
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"t
itle
1"
,
columnMap
.
get
(
"装机容量"
).
toString
());
data
.
put
(
"t
itle
2"
,
columnMap
.
get
(
"日发电量"
).
toString
());
data
.
put
(
"t
itle
3"
,
columnMap
.
get
(
"风机台数"
).
toString
().
replace
(
".0"
,
""
));
data
.
put
(
"t
itle
4"
,
columnMap
.
get
(
"月发电量"
).
toString
());
data
.
put
(
"t
itle
5"
,
7.47
);
//辐照强度
data
.
put
(
"t
itle
6"
,
columnMap
.
get
(
"年发电量"
).
toString
());
data
.
put
(
"t
itle7"
,
columnMap
.
get
(
"有功功率"
).
toString
(
));
data
.
put
(
"t
itle
8"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
())*
1000
)));
data
.
put
(
"t
itle
9"
,
columnMap
.
get
(
"总辐射累计"
).
toString
());
//总辐射日累计
data
.
put
(
"t
itle
0"
,
7.47
);
//综合效率
data
.
put
(
"t
otal
1"
,
columnMap
.
get
(
"装机容量"
).
toString
());
data
.
put
(
"t
otal
2"
,
columnMap
.
get
(
"日发电量"
).
toString
());
data
.
put
(
"t
otal
3"
,
columnMap
.
get
(
"风机台数"
).
toString
().
replace
(
".0"
,
""
));
data
.
put
(
"t
otal
4"
,
columnMap
.
get
(
"月发电量"
).
toString
());
data
.
put
(
"t
otal
5"
,
7.47
);
//辐照强度
data
.
put
(
"t
otal
6"
,
columnMap
.
get
(
"年发电量"
).
toString
());
data
.
put
(
"t
otal7"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
"有功功率"
).
toString
())/
1000
));
data
.
put
(
"t
otal
8"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
())*
1000
)));
data
.
put
(
"t
otal
9"
,
columnMap
.
get
(
"总辐射累计"
).
toString
());
//总辐射日累计
data
.
put
(
"t
otal
0"
,
7.47
);
//综合效率
return
ResponseHelper
.
buildResponse
(
data
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
6366f798
...
...
@@ -774,7 +774,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
TemporaryData
temporaryData
=
new
TemporaryData
();
temporaryData
.
setBatchNo
(
timeInMillis
);
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
get
EquipmentIndex
Name
());
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
get
Display
Name
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setValue
(
Float
.
valueOf
(
indicatorsDto
.
getValue
()));
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
...
...
@@ -788,7 +788,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
TemporaryData
temporaryData
=
new
TemporaryData
();
temporaryData
.
setBatchNo
(
timeInMillis
);
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
get
EquipmentIndex
Name
());
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
get
Display
Name
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setValue
(
Float
.
valueOf
(
indicatorsDto
.
getValue
()));
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
...
...
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