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
27b773ce
Commit
27b773ce
authored
Dec 10, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改固德威逆变器状态
parent
3306d465
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
GoodWeDataAcquisitionServiceImpl.java
...i/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
+9
-6
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
View file @
27b773ce
...
@@ -530,18 +530,21 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
...
@@ -530,18 +530,21 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
requestInfo2
.
put
(
"page_size"
,
1
);
requestInfo2
.
put
(
"page_size"
,
1
);
requestInfo2
.
put
(
"sn"
,
jpInverter
.
getSnCode
());
requestInfo2
.
put
(
"sn"
,
jpInverter
.
getSnCode
());
String
requstParam2
=
JSON
.
toJSONString
(
requestInfo2
);
String
requstParam2
=
JSON
.
toJSONString
(
requestInfo2
);
List
<
GoodWeStationDetail
>
goodWeStationDetails
=
goodWeRequestUtil
.
getResPonse
(
GoodWeConstant
.
snStatusURL
,
List
<
GoodWeStationDetail
>
goodWeStationDetails
=
goodWeRequestUtil
.
getResPonse
(
GoodWeConstant
.
requestPost
,
requstParam2
,
GoodWeConstant
.
resovleRule_data_list
,
GoodWeConstant
.
snStatusURL
,
GoodWeConstant
.
requestPost
,
requstParam2
,
GoodWeStationDetail
.
class
);
GoodWe
Constant
.
resovleRule_data_list
,
GoodWe
StationDetail
.
class
);
if
(
goodWeStationDetails
!=
null
&&
!
goodWeStationDetails
.
isEmpty
())
{
if
(
goodWeStationDetails
!=
null
&&
!
goodWeStationDetails
.
isEmpty
())
{
Integer
s
=
goodWeStationDetails
.
get
(
0
).
getStatus
();
Integer
s
=
goodWeStationDetails
.
get
(
0
).
getStatus
();
//(“” or null:全部,-1:离线 0:待机 1:发电中 2:停机 -2:无设备)
//
(“” or null:全部,-1:离线 0:待机 1:发电中 2:停机 -2:无设备)
if
(
s
==
0
||
s
==
1
)
{
if
(
s
==
0
||
s
==
1
)
{
jpInverter
.
setState
(
"在线"
);
jpInverter
.
setState
(
"在线"
);
}
else
if
(
s
==
null
||
s
==
-
1
||
s
==
2
|
s
==
-
2
)
{
}
else
if
(
s
==
null
||
s
==
-
1
||
s
==
2
|
s
==
-
2
)
{
jpInverter
.
setState
(
"离线"
);
jpInverter
.
setState
(
"离线"
);
}
else
{
jpInverter
.
setState
(
"离线"
);
}
}
}
else
{
jpInverter
.
setState
(
"离线"
);
}
}
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
jpInverter
.
getSequenceNbr
()))
{
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
jpInverter
.
getSequenceNbr
()))
{
...
...
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