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
5fd9d6dc
Commit
5fd9d6dc
authored
Jan 09, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化电站监控
parent
e61875a4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
6 deletions
+13
-6
GolangRequestUtil.java
...eejoin/amos/api/householdapi/Utils/GolangRequestUtil.java
+3
-0
GoodWeRequestUtil.java
...eejoin/amos/api/householdapi/Utils/GoodWeRequestUtil.java
+1
-1
SofarRequestUtil.java
...yeejoin/amos/api/householdapi/Utils/SofarRequestUtil.java
+1
-1
SunlightUtil.java
...com/yeejoin/amos/api/householdapi/Utils/SunlightUtil.java
+1
-1
GoodWeDataAcquisitionServiceImpl.java
...i/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
+6
-2
SunlightServiceImpl.java
...i/householdapi/face/service/impl/SunlightServiceImpl.java
+1
-1
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/Utils/GolangRequestUtil.java
View file @
5fd9d6dc
...
...
@@ -102,6 +102,9 @@ public class GolangRequestUtil {
JSONObject
page
=
data
.
getJSONObject
(
"page"
);
responePages
=
page
.
getInteger
(
"pages"
);
}
if
(
Objects
.
isNull
(
responePages
)){
responePages
=
0
;
}
if
(
responePages
<=
pageNo
){
break
;
}
else
{
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/Utils/GoodWeRequestUtil.java
View file @
5fd9d6dc
...
...
@@ -96,7 +96,7 @@ public class GoodWeRequestUtil {
//处理其他页数的数据
JSONObject
responeJSON
=
JSONObject
.
parseObject
(
respone
);
JSONObject
data
=
responeJSON
.
getJSONObject
(
"data"
);
Integer
record
=
data
.
getInteger
(
"record"
);
Integer
record
=
data
.
getInteger
(
"record"
)
==
null
?
0
:
data
.
getInteger
(
"record"
)
;
Integer
pageSize
=
requestInfo
.
get
(
"page_size"
)==
null
||
(
Integer
)
requestInfo
.
get
(
"page_size"
)==
0
?
1
:(
Integer
)
requestInfo
.
get
(
"page_size"
);
Integer
responePages
=(
record
/
pageSize
)+
1
;
if
(
responePages
<=
pageNo
){
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/Utils/SofarRequestUtil.java
View file @
5fd9d6dc
...
...
@@ -131,7 +131,7 @@ public class SofarRequestUtil {
thirdStationLogService
.
saveLog
(
hygfThirdStationLog
);
//处理其他页数的数据
JSONObject
responeJSON
=
JSONObject
.
parseObject
(
respone
);
Integer
total
=
responeJSON
.
getInteger
(
"total"
);
Integer
total
=
responeJSON
.
getInteger
(
"total"
)
==
null
?
0
:
responeJSON
.
getInteger
(
"total"
)
;
Integer
pageSize
=
requestInfo
.
get
(
"size"
)==
null
||
(
Integer
)
requestInfo
.
get
(
"size"
)==
0
?
1
:(
Integer
)
requestInfo
.
get
(
"size"
);
Integer
responePages
=(
total
/
pageSize
)+
1
;
if
(
responePages
<=
pageNo
){
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/Utils/SunlightUtil.java
View file @
5fd9d6dc
...
...
@@ -253,7 +253,7 @@ public class SunlightUtil {
hygfThirdStationLog
.
setResBody
(
res
);
thirdStationLogService
.
saveLog
(
hygfThirdStationLog
);
//处理其他页数的数据
Integer
rowCount
=
resultData
.
getInt
(
"rowCount"
);
Integer
rowCount
=
resultData
.
getInt
(
"rowCount"
)
==
null
?
0
:
resultData
.
getInt
(
"rowCount"
)
;
Integer
pageSize
=
bodyparam
.
get
(
"size"
)==
null
||
(
Integer
)
bodyparam
.
get
(
"size"
)==
0
?
1
:(
Integer
)
bodyparam
.
get
(
"size"
);
Integer
responePages
=(
rowCount
/
pageSize
)+
1
;
if
(
responePages
<=
pageNo
){
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
View file @
5fd9d6dc
...
...
@@ -123,9 +123,13 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
BeanUtil
.
copyProperties
(
goodWeStationMonitorDto
,
goodWeStationList
);
goodWeStationList
.
setCreatedTime
(
System
.
currentTimeMillis
());
goodWeStationMonitorListMapper
.
insert
(
goodWeStationList
);
JpStation
jpStation
=
jpStationMapper
.
select
One
(
new
QueryWrapper
<
JpStation
>().
eq
(
"third_code"
,
PVProducerInfoEnum
.
GDW
.
getCode
())
List
<
JpStation
>
jpStationList
=
jpStationMapper
.
select
List
(
new
QueryWrapper
<
JpStation
>().
eq
(
"third_code"
,
PVProducerInfoEnum
.
GDW
.
getCode
())
.
eq
(
"third_station_id"
,
goodWeStationList
.
getPowerstation_id
()));
JpStation
jpStation
=
null
;
if
(
CollectionUtil
.
isNotEmpty
(
jpStationList
)){
jpStation
=
jpStationList
.
get
(
0
);
}
if
(
ObjectUtils
.
isEmpty
(
jpStation
))
{
jpStation
=
new
JpStation
();
}
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SunlightServiceImpl.java
View file @
5fd9d6dc
...
...
@@ -338,7 +338,7 @@ public class SunlightServiceImpl implements SunlightService {
bodyparamjp
.
put
(
"size"
,
3000
);
bodyparamjp
.
put
(
"curPage"
,
1
);
bodyparamjp
.
put
(
"device_type_list"
,
lif
);
JSONObject
jsonObject1data
=
SunlightUtil
.
get
DataList
(
SunlightUtil
.
getDeviceList
,
bodyparamjp
);
JSONObject
jsonObject1data
=
SunlightUtil
.
get
data
(
SunlightUtil
.
getDeviceList
,
bodyparamjp
);
List
<
Device
>
listd
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
jsonObject1data
.
get
(
"pageList"
)),
Device
.
class
);
// 获取电站,月发电量
...
...
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