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
06c8fd9d
Commit
06c8fd9d
authored
Jul 06, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改网关
parent
46c83bc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DeviceController.java
...os/boot/module/jxiop/biz/controller/DeviceController.java
+1
-1
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DeviceController.java
View file @
06c8fd9d
...
@@ -57,7 +57,7 @@ public class DeviceController extends BaseController {
...
@@ -57,7 +57,7 @@ public class DeviceController extends BaseController {
querysqlcount
.
append
(
" and equipmentNumber ="
).
append
(
equipmentNumber
);
querysqlcount
.
append
(
" and equipmentNumber ="
).
append
(
equipmentNumber
);
querysql
.
append
(
" and equipmentNumber ="
).
append
(
equipmentNumber
);
querysql
.
append
(
" and equipmentNumber ="
).
append
(
equipmentNumber
);
}
}
querysql
.
append
(
" ORDER BY time desc LIMIT "
).
append
(
page
.
getSize
()).
append
(
" OFFSET "
).
append
((
page
.
getCurrent
()
-
1
)*
page
.
getSize
());
querysql
.
append
(
" ORDER BY time desc LIMIT "
).
append
(
page
.
getSize
()).
append
(
" OFFSET "
).
append
((
page
.
getCurrent
()
-
1
)*
page
.
getSize
());
//每个分机的指标数据
//每个分机的指标数据
List
<
IndexDto
>
list
=
influxDButils
.
getListData
(
querysql
.
toString
(),
IndexDto
.
class
);
List
<
IndexDto
>
list
=
influxDButils
.
getListData
(
querysql
.
toString
(),
IndexDto
.
class
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
06c8fd9d
...
@@ -69,7 +69,7 @@ public class MonitoringServiceImpl {
...
@@ -69,7 +69,7 @@ public class MonitoringServiceImpl {
Region
region
=
regionList
.
get
(
i
);
Region
region
=
regionList
.
get
(
i
);
List
<
StationBasic
>
list
=
stationBasicMapper
.
selectList
(
new
QueryWrapper
<
StationBasic
>().
like
(
"belong_area"
,
region
.
getRegionCode
()));
List
<
StationBasic
>
list
=
stationBasicMapper
.
selectList
(
new
QueryWrapper
<
StationBasic
>().
like
(
"belong_area"
,
region
.
getRegionCode
()));
list
.
forEach
(
stationBasic
->
{
list
.
forEach
(
stationBasic
->
{
if
(!
ObjectUtils
.
isEmpty
(
stationBasic
.
getGatewayId
())&&!
ObjectUtils
.
isEmpty
(
stationBasic
.
getStationNumber
())){
if
(!
ObjectUtils
.
isEmpty
(
stationBasic
.
get
Fan
GatewayId
())&&!
ObjectUtils
.
isEmpty
(
stationBasic
.
getStationNumber
())){
regionNationWideDto
.
setJsJoin
(
true
);
regionNationWideDto
.
setJsJoin
(
true
);
}
}
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
)){
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
)){
...
@@ -98,7 +98,7 @@ public class MonitoringServiceImpl {
...
@@ -98,7 +98,7 @@ public class MonitoringServiceImpl {
regionNationWideDto
.
setStaitionType
(
stationBasic
.
getStationType
());
regionNationWideDto
.
setStaitionType
(
stationBasic
.
getStationType
());
String
speendOrirradiate
=
""
;
String
speendOrirradiate
=
""
;
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
)){
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
)){
speendOrirradiate
=
String
.
valueOf
(
getIndicatoralueAvage
(
stationBasic
.
getGatewayId
(),
"30秒平均风速"
));
speendOrirradiate
=
String
.
valueOf
(
getIndicatoralueAvage
(
stationBasic
.
get
Fan
GatewayId
(),
"30秒平均风速"
));
regionNationWideDto
.
setSpeendOrirradiate
(
speendOrirradiate
);
regionNationWideDto
.
setSpeendOrirradiate
(
speendOrirradiate
);
}
else
{
}
else
{
regionNationWideDto
.
setSpeendOrirradiate
(
String
.
valueOf
(
Math
.
random
()*
1000
));
regionNationWideDto
.
setSpeendOrirradiate
(
String
.
valueOf
(
Math
.
random
()*
1000
));
...
@@ -148,7 +148,7 @@ public class MonitoringServiceImpl {
...
@@ -148,7 +148,7 @@ public class MonitoringServiceImpl {
//获取所有网关id不为空的数据
//获取所有网关id不为空的数据
List
<
StationBasic
>
stationBasicList
=
stationBasicMapper
.
selectList
(
new
QueryWrapper
<
StationBasic
>().
isNotNull
(
"gateway_id"
));
List
<
StationBasic
>
stationBasicList
=
stationBasicMapper
.
selectList
(
new
QueryWrapper
<
StationBasic
>().
isNotNull
(
"gateway_id"
));
stationBasicList
.
forEach
(
stationBasic
->
{
stationBasicList
.
forEach
(
stationBasic
->
{
totalSocialContribution
.
updateAndGet
(
v
->
v
+
(
Double
)
monitorFanIndicatorImpl
.
getIndicatoralueTotal
(
stationBasic
.
getGatewayId
(),
"年发电量"
));
totalSocialContribution
.
updateAndGet
(
v
->
v
+
(
Double
)
monitorFanIndicatorImpl
.
getIndicatoralueTotal
(
stationBasic
.
get
Fan
GatewayId
(),
"年发电量"
));
});
});
SocialContributionDto
co2
=
new
SocialContributionDto
();
SocialContributionDto
co2
=
new
SocialContributionDto
();
SocialContributionDto
coal
=
new
SocialContributionDto
();
SocialContributionDto
coal
=
new
SocialContributionDto
();
...
...
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