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
47adbc91
Commit
47adbc91
authored
Nov 27, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、科士达无效告警数据进行过滤
parent
5ed7a667
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+12
-12
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
47adbc91
...
@@ -41,6 +41,7 @@ import java.util.List;
...
@@ -41,6 +41,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collectors
;
/**
/**
* @author DELL
* @author DELL
...
@@ -494,7 +495,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -494,7 +495,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
}
}
}
}
@Scheduled
(
cron
=
"${dataRequstScheduled.keshida}"
)
//
@Scheduled(cron = "${dataRequstScheduled.keshida}")
@Override
@Override
public
void
collectorDetail
()
{
public
void
collectorDetail
()
{
...
@@ -1226,10 +1227,15 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -1226,10 +1227,15 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
}
}
List
<
JpInverter
>
jpInverter1
=
jpInverterMapper
.
selectList
(
new
QueryWrapper
<
JpInverter
>().
List
<
JpInverter
>
ksdInverterList
=
jpInverterMapper
.
selectList
(
new
QueryWrapper
<
JpInverter
>().
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()));
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()));
ksdInverterList
=
ksdInverterList
.
stream
().
filter
(
jpInverter
->
!
ObjectUtils
.
isEmpty
(
jpInverter
.
getCollectorSnCode
())).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
ksdInverterListMap
=
new
HashMap
<>();
ksdInverterList
.
forEach
(
jpInverter
->
{
ksdInverterListMap
.
put
(
jpInverter
.
getCollectorId
(),
jpInverter
.
getCollectorSnCode
());
});
// ksdInverterList.stream().filter(jpInverter -> !ObjectUtils.isEmpty(jpInverter.getCollectorSnCode())).collect(Collectors.toMap(JpInverter::getCollectorId,JpInverter::getCollectorSnCode));
HashMap
<
String
,
Object
>
requestInfo
=
new
HashMap
<>(
1
);
HashMap
<
String
,
Object
>
requestInfo
=
new
HashMap
<>(
1
);
String
requestParaminfo
=
JSON
.
toJSONString
(
requestInfo
);
String
requestParaminfo
=
JSON
.
toJSONString
(
requestInfo
);
...
@@ -1251,15 +1257,9 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -1251,15 +1257,9 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
// Date startTimeL = sdf.parse(startTime);
// Date startTimeL = sdf.parse(startTime);
// Date recoverTimeL = sdf.parse(recoverTime);
// Date recoverTimeL = sdf.parse(recoverTime);
String
snCode
=
null
;
String
snCode
=
ksdInverterListMap
.
get
(
ksolarAlarmDto
.
getDeviceId
());
if
(
ObjectUtils
.
isEmpty
(
snCode
)){
if
(
jpInverter1
!=
null
&&!
jpInverter1
.
isEmpty
()){
continue
;
for
(
JpInverter
jpInverter
:
jpInverter1
)
{
if
(
jpInverter
.
getCollectorId
().
equals
(
ksolarAlarmDto
.
getDeviceId
())){
snCode
=
jpInverter
.
getCollectorSnCode
();
break
;
}
}
}
}
List
<
HYGFJPInverterWarn
>
list
=
hygfjpInverterWarnMapper
.
selectList
(
new
QueryWrapper
<
HYGFJPInverterWarn
>()
List
<
HYGFJPInverterWarn
>
list
=
hygfjpInverterWarnMapper
.
selectList
(
new
QueryWrapper
<
HYGFJPInverterWarn
>()
.
eq
(
"sn_code"
,
snCode
)
.
eq
(
"sn_code"
,
snCode
)
...
...
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