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
53cc8421
Commit
53cc8421
authored
Apr 15, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运行监盘右侧数据返回错误问题修改
parent
0b0d798c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CoreCommonServiceImpl.java
.../module/jxiop/biz/service/impl/CoreCommonServiceImpl.java
+0
-1
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CoreCommonServiceImpl.java
View file @
53cc8421
...
...
@@ -30,7 +30,6 @@ public class CoreCommonServiceImpl implements CoreCommonService {
public
List
<
CoreValuesDto
>
getValuesByStationNamesAndPointsNames
(
String
stationNames
,
String
pointsNames
)
{
List
<
CoreValuesDto
>
result
=
new
ArrayList
<>();
try
{
FeignClientResult
<
List
<
Object
>>
feignClientResult
=
coreFeignClient
.
getValues
(
stationNames
,
pointsNames
);
List
<
Object
>
list
=
feignClientResult
.
getResult
();
list
.
forEach
(
o
->
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
View file @
53cc8421
...
...
@@ -372,13 +372,14 @@ public class MonitorServiceImpl implements MonitorService {
completionOfPowerIndicatorsDto
.
setDailyPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
buDunStationDetailInfo
.
getDay
()));
completionOfPowerIndicatorsDto
.
setMonthlyPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
buDunStationDetailInfo
.
getMonth
()));
completionOfPowerIndicatorsDto
.
setAnnualPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
buDunStationDetailInfo
.
getYear
()));
StationCacheInfoDto
stationCacheInfoDto
=
stationCacheInfoDtoList
.
stream
().
filter
(
stationCacheInfoDto1
->
stationCacheInfoDto1
.
getStationName
().
contains
(
buDunStationDetailInfo
.
getStation_name
().
replace
(
"电场"
,
""
).
replace
(
"电站"
,
""
)
)).
findFirst
().
get
(
);
if
(
stationCacheInfoDto
.
getStationCoreName
()
!=
null
&&
stationCacheInfoDto
.
getBoosterCoreName
()
!=
null
)
{
StationCacheInfoDto
stationCacheInfoDto
=
stationCacheInfoDtoList
.
stream
().
filter
(
stationCacheInfoDto1
->
stationCacheInfoDto1
.
getStationName
().
contains
(
buDunStationDetailInfo
.
getStation_name
().
replace
(
"电场"
,
""
).
replace
(
"电站"
,
""
)
.
replace
(
"光伏电站"
,
""
))).
findFirst
().
orElse
(
null
);
if
(
!
ObjectUtils
.
isEmpty
(
stationCacheInfoDto
)&&
stationCacheInfoDto
.
getStationCoreName
()
!=
null
&&
stationCacheInfoDto
.
getBoosterCoreName
()
!=
null
)
{
List
<
CoreValuesDto
>
coreValuesDtoList
=
coreValuesDtos
.
stream
().
filter
(
coreValuesDto
->
coreValuesDto
.
getName
().
equals
(
stationCacheInfoDto
.
getStationCoreName
())
||
coreValuesDto
.
getName
().
equals
(
stationCacheInfoDto
.
getBoosterCoreName
())).
collect
(
Collectors
.
toList
());
completionOfPowerIndicatorsDto
.
setActivePower
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
coreCommonService
.
getSumOfByPointName
(
coreValuesDtoList
,
CommonConstans
.
ACTIVE_POWER
))));
}
else
{
completionOfPowerIndicatorsDto
.
setActivePower
(
"--"
);
}
completionOfPowerIndicatorsDtoList
.
add
(
completionOfPowerIndicatorsDto
);
});
}
String
provincelUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_province_item_url
+
"&provinceName="
+
provinceName
;
...
...
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