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
a3749eb0
Commit
a3749eb0
authored
Feb 22, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏-区域功率曲线显示异常问题处理。
parent
5175a6c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+12
-12
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
View file @
a3749eb0
...
@@ -960,8 +960,8 @@ public Map<String,Object> gettimedateyfd( ){
...
@@ -960,8 +960,8 @@ public Map<String,Object> gettimedateyfd( ){
// String gfGatewayIds="";
// String gfGatewayIds="";
// List<String> fdGatewayId = stationBasicListfd.stream().map(StationBasic::getBoosterGatewayId).collect(Collectors.toList());
// List<String> fdGatewayId = stationBasicListfd.stream().map(StationBasic::getBoosterGatewayId).collect(Collectors.toList());
// List<String> gfGatewayId = stationBasicListgf.stream().map(StationBasic::getBoosterGatewayId).collect(Collectors.toList());
// List<String> gfGatewayId = stationBasicListgf.stream().map(StationBasic::getBoosterGatewayId).collect(Collectors.toList());
String
fdGatewayIds
=
stationBasicListfd
.
stream
().
map
(
StationBasic:
:
getBoosterGatewayId
).
collect
(
Collectors
.
joining
(
","
));
String
fdGatewayIds
=
stationBasicListfd
.
stream
().
map
(
stationBasic
->
"'"
+
stationBasic
.
getBoosterGatewayId
()+
"'"
).
collect
(
Collectors
.
joining
(
","
));
String
gfGatewayIds
=
stationBasicListgf
.
stream
().
map
(
StationBasic:
:
getBoosterGatewayId
).
collect
(
Collectors
.
joining
(
","
));
String
gfGatewayIds
=
stationBasicListgf
.
stream
().
map
(
stationBasic
->
"'"
+
stationBasic
.
getBoosterGatewayId
()+
"'"
).
collect
(
Collectors
.
joining
(
","
));
List
<
StationBasic
>
stationBasicListAll
=
new
ArrayList
<>();
List
<
StationBasic
>
stationBasicListAll
=
new
ArrayList
<>();
stationBasicListAll
.
addAll
(
stationBasicListfd
);
stationBasicListAll
.
addAll
(
stationBasicListfd
);
...
@@ -979,13 +979,13 @@ public Map<String,Object> gettimedateyfd( ){
...
@@ -979,13 +979,13 @@ public Map<String,Object> gettimedateyfd( ){
Map
<
String
,
Object
>
activePowerInfo
=
new
HashMap
<>();
Map
<
String
,
Object
>
activePowerInfo
=
new
HashMap
<>();
List
<
IndicatorData
>
activePowerListFD
=
new
ArrayList
<>();
List
<
IndicatorData
>
activePowerListFD
=
new
ArrayList
<>();
List
<
IndicatorData
>
activePowerListGF
=
new
ArrayList
<>();
List
<
IndicatorData
>
activePowerListGF
=
new
ArrayList
<>();
Date
currentDayStartTime
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
//
Date currentDayStartTime = DateUtils.getCurrentDayStartTime(new Date());
Date
currentDayEndTime
=
DateUtils
.
getCurrentDayEndTime
(
new
Date
());
//
Date currentDayEndTime = DateUtils.getCurrentDayEndTime(new Date());
Calendar
calendar
=
Calendar
.
getInstance
(
TimeZone
.
getTimeZone
(
"UTC"
));
//
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss'Z'"
);
//
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
//
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
String
startTime
=
sdf
.
format
(
currentDayStartTime
);
//
String startTime = sdf.format(currentDayStartTime);
String
endTime
=
sdf
.
format
(
currentDayEndTime
);
//
String endTime= sdf.format(currentDayEndTime);
...
@@ -993,14 +993,14 @@ public Map<String,Object> gettimedateyfd( ){
...
@@ -993,14 +993,14 @@ public Map<String,Object> gettimedateyfd( ){
// String endTime = DateUtils.convertDateToString(currentDayEndTime, DateUtils.DATE_TIME_PATTERN);
// String endTime = DateUtils.convertDateToString(currentDayEndTime, DateUtils.DATE_TIME_PATTERN);
activePowerListFD
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqg
(
CommonConstans
.
xiazaoActivePowerPoint
,
startTime
,
endTime
,
fdGatewayIds
);
activePowerListFD
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqg
New
(
CommonConstans
.
xiazaoActivePowerPoint
,
fdGatewayIds
);
activePowerListGF
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqg
(
CommonConstans
.
taiheActivePowerPoint
,
startTime
,
endTime
,
gfGatewayIds
);
activePowerListGF
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqg
New
(
CommonConstans
.
taiheActivePowerPoint
,
gfGatewayIds
);
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
IndicatorData
indicatorData2
=
activePowerListGF
.
get
(
i
);
IndicatorData
indicatorData2
=
activePowerListGF
.
get
(
i
);
time
.
add
(
indicatorData
.
getXtime
(
));
time
.
add
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
format
(
indicatorData
.
getCreatedTime
(),
"HH:mm"
));
// Double vl= indicatorData.getValueF()+indicatorData2.getValueF() * CommonConstans.kwToMv;
// Double vl= indicatorData.getValueF()+indicatorData2.getValueF() * CommonConstans.kwToMv;
Double
vl
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData
.
getValueF
()))+
Double
vl
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData
.
getValueF
()))+
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData2
.
getValueF
()
*
CommonConstans
.
kwToMv
));
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData2
.
getValueF
()
*
CommonConstans
.
kwToMv
));
...
...
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