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
3a78f66e
Commit
3a78f66e
authored
Sep 15, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
a6c34b91
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
4 deletions
+152
-4
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+2
-2
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+0
-0
fanlocation.json
...op-bigscreen-biz/src/main/resources/json/fanlocation.json
+148
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+2
-2
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 @
3a78f66e
...
@@ -255,9 +255,9 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -255,9 +255,9 @@ public class MonitorFanIdxController extends BaseController {
List
<
Map
>
list
=
parseArray
(
json
,
Map
.
class
);
List
<
Map
>
list
=
parseArray
(
json
,
Map
.
class
);
for
(
Map
map
:
list
)
{
for
(
Map
map
:
list
)
{
String
key
=
map
.
get
(
"title"
).
toString
();
String
key
=
map
.
get
(
"title"
).
toString
();
map
.
put
(
"title"
,
columnMap
.
get
(
key
)==
null
?
0.00
:
columnMap
.
get
(
key
));
map
.
put
(
"title2"
,
map
.
get
(
"title"
));
if
(
map
.
containsKey
(
"action"
)){
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
(
"日利用小时"
)){
if
(
key
.
equals
(
"日利用小时"
)){
String
format
=
String
.
format
(
"%.2f"
,
((
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())*
10
)/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
()))));
String
format
=
String
.
format
(
"%.2f"
,
((
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())*
10
)/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
()))));
map
.
put
(
"title"
,
format
);
map
.
put
(
"title"
,
format
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
3a78f66e
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/json/fanlocation.json
0 → 100644
View file @
3a78f66e
[
{
"euqipmentNumber"
:
"01"
,
"latitude"
:
"26°19'20.3968"
,
"longitude"
:
"114°43'01.3487"
},
{
"euqipmentNumber"
:
"02"
,
"latitude"
:
"26°18'17.3192"
,
"longitude"
:
"114°43'55.0756"
},
{
"euqipmentNumber"
:
"03"
,
"latitude"
:
"26°18'34.3219"
,
"longitude"
:
"114°44'01.4686"
},
{
"euqipmentNumber"
:
"04"
,
"latitude"
:
"26°18'42.2673"
,
"longitude"
:
"114°44'10.7522"
},
{
"euqipmentNumber"
:
"05"
,
"latitude"
:
"26°18'38.0098"
,
"longitude"
:
"114°44'21.7018"
},
{
"euqipmentNumber"
:
"06"
,
"latitude"
:
"26°18'34.6466"
,
"longitude"
:
"114°44'29.9556"
},
{
"euqipmentNumber"
:
"07"
,
"latitude"
:
"26°18'36.8995"
,
"longitude"
:
"114°44'39.7470"
},
{
"euqipmentNumber"
:
"08"
,
"latitude"
:
"26°18'33.5051"
,
"longitude"
:
"114°44'50.8102"
},
{
"euqipmentNumber"
:
"09"
,
"longitude"
:
"114°42'38.4597"
,
"latitude"
:
"26°16'45.3175"
},
{
"euqipmentNumber"
:
"10"
,
"longitude"
:
"114°42'46.7892"
,
"latitude"
:
"26°16'34.2193"
},
{
"euqipmentNumber"
:
"11"
,
"longitude"
:
"114°42'57.3524"
,
"latitude"
:
"26°16'18.2295"
},
{
"euqipmentNumber"
:
"12"
,
"longitude"
:
"114°43'44.6453"
,
"latitude"
:
"26°16'22.9530"
},
{
"euqipmentNumber"
:
"13"
,
"latitude"
:
"26°16'25.2473"
,
"longitude"
:
"114°43'55.4240"
},
{
"euqipmentNumber"
:
"14"
,
"latitude"
:
"26°15'23.8288"
,
"longitude"
:
"114°42'46.1713"
},
{
"euqipmentNumber"
:
"15"
,
"latitude"
:
"26°15'18.3501"
,
"longitude"
:
"114°42'36.4494"
},
{
"euqipmentNumber"
:
"16"
,
"latitude"
:
"26°15'15.1157"
,
"longitude"
:
"114°42'24.2207"
},
{
"euqipmentNumber"
:
"17"
,
"latitude"
:
"26°15'12.3541"
,
"longitude"
:
"114°42'16.2315"
},
{
"euqipmentNumber"
:
"18"
,
"latitude"
:
"26°15'07.7590"
,
"longitude"
:
"114°42'09.1002"
},
{
"euqipmentNumber"
:
"19"
,
"latitude"
:
"26°15'06.4482"
,
"longitude"
:
"114°41'59.3730"
},
{
"euqipmentNumber"
:
"20"
,
"latitude"
:
"26°15'05.7242"
,
"longitude"
:
"114°41'51.2436"
},
{
"euqipmentNumber"
:
"21"
,
"latitude"
:
"26°14'54.2353"
,
"longitude"
:
"114°41'45.1572"
},
{
"euqipmentNumber"
:
"22"
,
"latitude"
:
"26°14'53.7742"
,
"longitude"
:
"114°41'35.6931"
},
{
"euqipmentNumber"
:
"23"
,
"latitude"
:
"26°14'49.6670"
,
"longitude"
:
"114°41'28.9852"
},
{
"euqipmentNumber"
:
"24"
,
"latitude"
:
"26°14'52.6637"
,
"longitude"
:
"114°41'19.3269"
},
{
"euqipmentNumber"
:
"25"
,
"latitude"
:
"26°14'43.4608"
,
"longitude"
:
"114°41'12.0974"
},
{
"euqipmentNumber"
:
"26"
,
"latitude"
:
"26°14'40.3649"
,
"longitude"
:
"114°41'03.8101"
},
{
"euqipmentNumber"
:
"27"
,
"latitude"
:
"26°15'33.5730"
,
"longitude"
:
"114°40'33.7931"
},
{
"euqipmentNumber"
:
"28"
,
"latitude"
:
"26°15'24.1330"
,
"longitude"
:
"114°40'51.2196"
},
{
"euqipmentNumber"
:
"29"
,
"latitude"
:
"26°15'29.4603"
,
"longitude"
:
"114°40'45.3326"
}
]
\ No newline at end of file
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 @
3a78f66e
...
@@ -635,7 +635,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -635,7 +635,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
getEquipmentIndexName
());
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
getEquipmentIndexName
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setValue
(
Float
.
valueOf
(
indicatorsDto
.
getValue
()
));
temporaryData
.
setValue
(
indicatorsDto
.
getValueDouble
(
));
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
temporaryDatas
.
add
(
temporaryData
);
temporaryDatas
.
add
(
temporaryData
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -649,7 +649,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -649,7 +649,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setCreatedTime
(
time
.
split
(
" "
)[
1
]);
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
getEquipmentIndexName
());
temporaryData
.
setEquipmentIndexName
(
indicatorsDto
.
getEquipmentIndexName
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setGatewayId
(
indicatorsDto
.
getGatewayId
());
temporaryData
.
setValue
(
Float
.
valueOf
(
indicatorsDto
.
getValue
()
));
temporaryData
.
setValue
(
indicatorsDto
.
getValueDouble
(
));
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
temporaryData
.
setEquipmentNumber
(
indicatorsDto
.
getEquipmentNumber
());
temporaryDatass
.
add
(
temporaryData
);
temporaryDatass
.
add
(
temporaryData
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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