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
eb6274a9
Commit
eb6274a9
authored
Oct 24, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer_bw' into developer_bw
parents
74670e82
dc464bd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
16 deletions
+25
-16
Constants.java
...om/yeejoin/amos/boot/module/jxiop/api/util/Constants.java
+1
-1
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+20
-13
application.properties
...p-bigscreen-biz/src/main/resources/application.properties
+4
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/util/Constants.java
View file @
eb6274a9
...
@@ -86,7 +86,7 @@ public class Constants {
...
@@ -86,7 +86,7 @@ public class Constants {
public
static
final
String
get_quota_complate_info
=
"method=scene_screen.large_screen.get_quota_complate_info"
;
public
static
final
String
get_quota_complate_info
=
"method=scene_screen.large_screen.get_quota_complate_info"
;
public
static
final
String
resovleRule_data
=
"data"
;
public
static
final
String
resovleRule_data
=
"data"
;
public
static
final
String
areaChinese
=
"区域"
;
public
static
final
String
areaChinese
=
"区域"
;
public
static
final
String
get_big_screen_point_url
=
"http://iiet-jepcc.powerchina.cn:8088/core/datastorage/gateway/point/list?groupId=1827987484823289857&dataType=analog"
;
//
public static final String get_big_screen_point_url="http://iiet-jepcc.powerchina.cn:8088/core/datastorage/gateway/point/list?groupId=1827987484823289857&dataType=analog";
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
View file @
eb6274a9
...
@@ -35,6 +35,7 @@ import org.springframework.http.*;
...
@@ -35,6 +35,7 @@ import org.springframework.http.*;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
...
@@ -98,7 +99,8 @@ public class LargeScreenImpl {
...
@@ -98,7 +99,8 @@ public class LargeScreenImpl {
@Value
(
"${budun.baseurl:http://iiet-jepcc.powerchina.cn:8088/screen_api}"
)
@Value
(
"${budun.baseurl:http://iiet-jepcc.powerchina.cn:8088/screen_api}"
)
private
String
budunBaseURL
;
private
String
budunBaseURL
;
@Value
(
"${bigScreenPoint.url:http://iiet-jepcc.powerchina.cn:8088/core/datastorage/gateway/point/list?groupId=1827987484823289857&dataType=analog}"
)
private
String
bigScreenPointUrl
;
/**
/**
* 全国
* 全国
*/
*/
...
@@ -267,7 +269,7 @@ public class LargeScreenImpl {
...
@@ -267,7 +269,7 @@ public class LargeScreenImpl {
*/
*/
private
Map
<
String
,
Double
>
getPointValue
()
{
private
Map
<
String
,
Double
>
getPointValue
()
{
Map
<
String
,
Double
>
resultMap
=
new
HashMap
();
Map
<
String
,
Double
>
resultMap
=
new
HashMap
();
JSONObject
jsonObject
=
sendCoreGetRequest
(
Constants
.
get_big_screen_point_u
rl
);
JSONObject
jsonObject
=
sendCoreGetRequest
(
bigScreenPointU
rl
);
if
(!
Objects
.
isNull
(
jsonObject
))
{
if
(!
Objects
.
isNull
(
jsonObject
))
{
if
(
jsonObject
.
getInteger
(
"status"
)
==
HttpStatus
.
OK
.
value
())
{
if
(
jsonObject
.
getInteger
(
"status"
)
==
HttpStatus
.
OK
.
value
())
{
JSONArray
resultJsonArray
=
jsonObject
.
getJSONArray
(
"result"
);
JSONArray
resultJsonArray
=
jsonObject
.
getJSONArray
(
"result"
);
...
@@ -1042,11 +1044,14 @@ public class LargeScreenImpl {
...
@@ -1042,11 +1044,14 @@ public class LargeScreenImpl {
// String startTime = sdf.format(currentDayStartTime);
// String startTime = sdf.format(currentDayStartTime);
// String endTime= sdf.format(currentDayEndTime);
// String endTime= sdf.format(currentDayEndTime);
activePowerListFD
=
indicatorDataMapper
if
(!
StringUtils
.
isEmpty
(
fdGatewayIds
)){
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
xiazaoActivePowerPoint
,
fdGatewayIds
);
activePowerListFD
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
xiazaoActivePowerPoint
,
fdGatewayIds
);
activePowerListGF
=
indicatorDataMapper
}
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
taiheActivePowerPoint
,
gfGatewayIds
);
if
(!
StringUtils
.
isEmpty
(
gfGatewayIds
)){
activePowerListGF
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
taiheActivePowerPoint
,
gfGatewayIds
);
}
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
...
@@ -1146,12 +1151,14 @@ public class LargeScreenImpl {
...
@@ -1146,12 +1151,14 @@ public class LargeScreenImpl {
// String startTime = DateUtils.convertDateToString(currentDayStartTime, DateUtils.DATE_TIME_PATTERN);
// String startTime = DateUtils.convertDateToString(currentDayStartTime, DateUtils.DATE_TIME_PATTERN);
// String endTime = DateUtils.convertDateToString(currentDayEndTime, DateUtils.DATE_TIME_PATTERN);
// String endTime = DateUtils.convertDateToString(currentDayEndTime, DateUtils.DATE_TIME_PATTERN);
if
(!
StringUtils
.
isEmpty
(
fdGatewayIds
)){
activePowerListFD
=
indicatorDataMapper
activePowerListFD
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
xiazaoActivePowerPoint
,
fdGatewayIds
);
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
xiazaoActivePowerPoint
,
fdGatewayIds
);
}
activePowerListGF
=
indicatorDataMapper
if
(!
StringUtils
.
isEmpty
(
gfGatewayIds
)){
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
taiheActivePowerPoint
,
gfGatewayIds
);
activePowerListGF
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtimeqgNew
(
CommonConstans
.
taiheActivePowerPoint
,
gfGatewayIds
);
}
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
System
.
out
.
println
(
JSON
.
toJSONString
(
activePowerListFD
));
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
activePowerListFD
.
size
();
i
++)
{
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
IndicatorData
indicatorData
=
activePowerListFD
.
get
(
i
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/application.properties
View file @
eb6274a9
...
@@ -84,4 +84,6 @@ year.power.generation.cron=0 0/1 * * * ?
...
@@ -84,4 +84,6 @@ year.power.generation.cron=0 0/1 * * * ?
large.cron
=
0 0/5 * * * ?
large.cron
=
0 0/5 * * * ?
forecast.url
=
http://10.20.1.29:8095/offline/time-series/decomposition
forecast.url
=
http://10.20.1.29:8095/offline/time-series/decomposition
budun.baseurl
=
http://iiet-jepcc.powerchina.cn:8088/screen_api
budun.baseurl
=
http://iiet-jepcc.powerchina.cn:8088/screen_api
\ No newline at end of file
bigScreenPoint.url
=
http://iiet-jepcc.powerchina.cn:8088/core/datastorage/gateway/point/list?groupId=1827987484823289857&dataType=anal
\
og
\ No newline at end of file
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