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
f08f6ac4
Commit
f08f6ac4
authored
Nov 10, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改sn——code
parent
1e423742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+15
-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 @
f08f6ac4
...
@@ -1035,8 +1035,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -1035,8 +1035,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
}
}
//
List<JpInverter> jpInverter1 = jpInverterMapper.selectList(new QueryWrapper<JpInverter>().
List
<
JpInverter
>
jpInverter1
=
jpInverterMapper
.
selectList
(
new
QueryWrapper
<
JpInverter
>().
//
eq("third_code", PVProducerInfoEnum.KSOLAR.getCode()));
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()));
...
@@ -1059,8 +1059,19 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -1059,8 +1059,19 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
pattern
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
pattern
);
Date
startTimeL
=
sdf
.
parse
(
startTime
);
Date
startTimeL
=
sdf
.
parse
(
startTime
);
Date
recoverTimeL
=
sdf
.
parse
(
recoverTime
);
Date
recoverTimeL
=
sdf
.
parse
(
recoverTime
);
String
snCode
=
null
;
if
(
jpInverter1
!=
null
&&!
jpInverter1
.
isEmpty
()){
for
(
JpInverter
jpInverter
:
jpInverter1
)
{
if
(
jpInverter
.
getCollectorId
().
equals
(
ksolarAlarmDto
.
getDeviceId
())){
snCode
=
jpInverter
.
getCollectorSnCode
();
break
;
}
}
}
HYGFJPInverterWarn
hygfjpInverterWarn
=
hygfjpInverterWarnMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPInverterWarn
>()
HYGFJPInverterWarn
hygfjpInverterWarn
=
hygfjpInverterWarnMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPInverterWarn
>()
.
eq
(
"sn_code"
,
ksolarAlarmDto
.
getAlarmId
()
)
.
eq
(
"sn_code"
,
snCode
)
.
eq
(
"start_time"
,
startTimeL
.
getTime
())
.
eq
(
"start_time"
,
startTimeL
.
getTime
())
.
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
())
.
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
())
.
eq
(
"third_station_id"
,
ksolarAlarmDto
.
getStationId
())
.
eq
(
"third_station_id"
,
ksolarAlarmDto
.
getStationId
())
...
@@ -1071,15 +1082,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -1071,15 +1082,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
hygfjpInverterWarn
.
setTime
(
System
.
currentTimeMillis
());
hygfjpInverterWarn
.
setTime
(
System
.
currentTimeMillis
());
hygfjpInverterWarn
.
setTimeLong
(
System
.
currentTimeMillis
());
hygfjpInverterWarn
.
setTimeLong
(
System
.
currentTimeMillis
());
hygfjpInverterWarn
.
setSnCode
(
snCode
);
// if(jpInverter1!=null&&!jpInverter1.isEmpty()){
// for (JpInverter jpInverter : jpInverter1) {
// if(jpInverter.getCollectorId().equals(ksolarAlarmDto.getDeviceId())){
// hygfjpInverterWarn.setSnCode(jpInverter.getCollectorSnCode());
// break;
// }
// }
// }
hygfjpInverterWarn
.
setThirdStationId
(
ksolarAlarmDto
.
getStationId
());
hygfjpInverterWarn
.
setThirdStationId
(
ksolarAlarmDto
.
getStationId
());
hygfjpInverterWarn
.
setLevel
(
KSolarConstant
.
alarmLevel
.
get
(
ksolarAlarmDto
.
getLevels
()));
hygfjpInverterWarn
.
setLevel
(
KSolarConstant
.
alarmLevel
.
get
(
ksolarAlarmDto
.
getLevels
()));
hygfjpInverterWarn
.
setContent
(
ksolarAlarmDto
.
getMessage
());
hygfjpInverterWarn
.
setContent
(
ksolarAlarmDto
.
getMessage
());
...
...
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