Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
e7d645ea
Commit
e7d645ea
authored
Jul 29, 2024
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首航同步采集器详情/逆变器 打印日志
parent
3da06c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
SofarDataAcquisitionServiceImpl.java
...pi/face/service/impl/SofarDataAcquisitionServiceImpl.java
+18
-7
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SofarDataAcquisitionServiceImpl.java
View file @
e7d645ea
...
...
@@ -14,6 +14,7 @@ import java.util.stream.Stream;
import
javax.annotation.PostConstruct
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
...
...
@@ -69,6 +70,7 @@ import cn.hutool.core.date.DateUtil;
import
fastjson.JSON
;
@Service
@Slf4j
public
class
SofarDataAcquisitionServiceImpl
implements
SofarDataAcquisitionService
{
@Autowired
private
SofarRequestUtil
requestUtil
;
...
...
@@ -497,15 +499,15 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
// tdJpStation.setCreatedTime(System.currentTimeMillis());
// tdJpStationMapper.insert(tdJpStation);
// }
Map
<
String
,
Object
>
requestInfo3
=
new
HashMap
<>();
requestInfo3
.
put
(
"stationId"
,
sunlightDto
.
getId
());
requestInfo3
.
put
(
"deviceType"
,
"COLLECTOR"
);
String
param3
=
JSON
.
toJSONString
(
requestInfo3
);
List
<
SofarInverter
>
jsonObject3
=
requestUtil
.
getResPonse
(
SoFarConstant
.
nbqlist
,
SoFarConstant
.
requestPost
,
param3
,
SoFarConstant
.
deviceListItems
,
SofarInverter
.
class
);
//
Map<String, Object> requestInfo3 = new HashMap<>();
//
requestInfo3.put("stationId", sunlightDto.getId());
//
requestInfo3.put("deviceType", "COLLECTOR");
//
String param3 = JSON.toJSONString(requestInfo3);
//
List<SofarInverter> jsonObject3 = requestUtil.getResPonse(SoFarConstant.nbqlist,
//
SoFarConstant.requestPost, param3, SoFarConstant.deviceListItems, SofarInverter.class);
// 逆变器信信息
this
.
inverterList
(
jsonObject2
,
jpStation
,
maps
);
this
.
collectorDetail
(
jsonObject3
,
jpStation
);
//
this.collectorDetail(jsonObject3, jpStation);
// 报警列表无法获取ruleId了 首航更新接口了
this
.
inverAlramInfo
(
jpStation
);
}
...
...
@@ -516,6 +518,15 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
jpStationMapper
.
insert
(
jpStation
);
}
}
// 获取采集器信息
Map
<
String
,
Object
>
requestInfo3
=
new
HashMap
<>();
requestInfo3
.
put
(
"stationId"
,
sunlightDto
.
getId
());
requestInfo3
.
put
(
"deviceType"
,
"COLLECTOR"
);
String
param3
=
JSON
.
toJSONString
(
requestInfo3
);
List
<
SofarInverter
>
jsonObject3
=
requestUtil
.
getResPonse
(
SoFarConstant
.
nbqlist
,
SoFarConstant
.
requestPost
,
param3
,
SoFarConstant
.
deviceListItems
,
SofarInverter
.
class
);
// 逆变器信信息
this
.
collectorDetail
(
jsonObject3
,
jpStation
);
// 电站报表
// 户用场站日发电量
...
...
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