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
95dc2b0b
Commit
95dc2b0b
authored
Sep 22, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场站新增邮箱字段对原有逻辑进行调整
parent
dd8b45e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
HouseholdTestController.java
.../api/householdapi/controller/HouseholdTestController.java
+3
-3
JpStation.java
...householdapi/face/orm/houseapi/entity/hygf/JpStation.java
+2
-1
GoLangDataAcquisitionServiceImpl.java
...i/face/service/impl/GoLangDataAcquisitionServiceImpl.java
+6
-5
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/controller/HouseholdTestController.java
View file @
95dc2b0b
...
...
@@ -56,11 +56,11 @@ public class HouseholdTestController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"锦浪云"
,
notes
=
"锦浪云"
)
public
void
golangnew
()
throws
IOException
{
// goLangDataAcquisitionService.stationList();
goLangDataAcquisitionService
.
stationDetail
();
//
goLangDataAcquisitionService.stationDetail();
// goLangDataAcquisitionService.collectorList();
//// goLangDataAcquisitionService.inverterList();
//
goLangDataAcquisitionService.collectorDetail();
//
goLangDataAcquisitionService.inverterDetail();
goLangDataAcquisitionService
.
collectorDetail
();
goLangDataAcquisitionService
.
inverterDetail
();
// goLangDataAcquisitionService.inverAlramInfo();
}
}
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/orm/houseapi/entity/hygf/JpStation.java
View file @
95dc2b0b
...
...
@@ -215,5 +215,6 @@ public class JpStation implements Serializable {
private
Double
monthPowerPse
;
// 月用电量
@TableField
(
"year_power_use"
)
private
Double
yearPowerUse
;
// 年用电量
@TableField
(
"email"
)
private
String
email
;
// 电子邮箱
}
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoLangDataAcquisitionServiceImpl.java
View file @
95dc2b0b
...
...
@@ -146,7 +146,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
jpStation
.
setLatitude
(
golangStationDetail
.
getLatitude
());
jpStation
.
setUserName
(
golangStationDetail
.
getUsername
());
jpStation
.
setUserPhone
(
String
.
valueOf
(
golangStationDetail
.
getUsermobile
()));
jpStation
.
setStationContact
(
Str
Util
.
nullToDefault
(
String
.
valueOf
(
golangStationDetail
.
getMobile
()),
""
));
jpStation
.
setStationContact
(
Str
ing
.
valueOf
(
golangStationDetail
.
getMobile
()).
toLowerCase
().
replace
(
"null"
,
""
));
jpStation
.
setModuleCount
(
Math
.
toIntExact
(
golangStationDetail
.
getModule
()));
//并网类型
jpStation
.
setOnGridType
(
GoLangConstant
.
stationStaus
.
get
(
String
.
valueOf
(
golangStationDetail
.
getState
())));
...
...
@@ -162,6 +162,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
jpStation
.
setYearIncome
(
golangStationDetail
.
getYearincome
());
jpStation
.
setCumulativeIncome
(
golangStationDetail
.
getAllincome
());
jpStation
.
setArea
(
golangStationDetail
.
getRegionstr
());
jpStation
.
setEmail
(
golangStationDetail
.
getUseremail
());
if
(!
ObjectUtils
.
isEmpty
(
jpStation
.
getSequenceNbr
()))
{
jpStationMapper
.
updateById
(
jpStation
);
}
else
{
...
...
@@ -327,15 +328,15 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
@Scheduled
(
cron
=
dataRequstScheduled
)
@Override
public
void
inverterDetail
()
{
List
<
Long
>
inverterIds
=
golangInverterListMapper
.
getInverterId
s
();
for
(
int
i
=
0
;
i
<
inverter
Id
s
.
size
();
i
++)
{
List
<
String
>
inverterSns
=
golangInverterListMapper
.
getInverterSn
s
();
for
(
int
i
=
0
;
i
<
inverter
Sn
s
.
size
();
i
++)
{
try
{
TimeUnit
.
SECONDS
.
sleep
(
1
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
HashMap
<
String
,
Object
>
requestInfo
=
new
HashMap
<>();
requestInfo
.
put
(
"
id"
,
Long
.
valueOf
(
inverterIds
.
get
(
i
)
));
requestInfo
.
put
(
"
sn"
,
inverterSns
.
get
(
i
));
String
requestParaminfo
=
JSON
.
toJSONString
(
requestInfo
);
List
<
InverterDetailDto
>
result
=
golangRequestUtil
.
getResPonse
(
GoLangConstant
.
inverterDetailUrl
,
GoLangConstant
.
requestPost
,
...
...
@@ -432,7 +433,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
hygfjpInverterElecHistory
.
setWAcCurrent
(
inverterDetailDto
.
getIAc3
());
hygfjpInverterElecHistory
.
setUAcVoltage
(
inverterDetailDto
.
getUAc1
());
hygfjpInverterElecHistory
.
setVAcVoltage
(
inverterDetailDto
.
getUAc2
());
hygfjpInverterElecHistory
.
set
U
AcVoltage
(
inverterDetailDto
.
getUAc3
());
hygfjpInverterElecHistory
.
set
W
AcVoltage
(
inverterDetailDto
.
getUAc3
());
hygfjpInverterElecHistory
.
setThirdCode
(
PVProducerInfoEnum
.
JLY
.
getCode
());
hygfjpInverterElecHistory
.
setTime
(
System
.
currentTimeMillis
());
hygfjpInverterElecHistoryMapper
.
insert
(
hygfjpInverterElecHistory
);
...
...
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