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
aa297b84
Commit
aa297b84
authored
Apr 15, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运行监盘、首页监盘现场数据源切换后问题修改。
parent
55682b35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
BuDunGenDto.java
...m/yeejoin/amos/boot/module/jxiop/api/dto/BuDunGenDto.java
+9
-7
CoreCommonServiceImpl.java
.../module/jxiop/biz/service/impl/CoreCommonServiceImpl.java
+1
-1
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+4
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/BuDunGenDto.java
View file @
aa297b84
...
@@ -4,11 +4,13 @@ import lombok.Data;
...
@@ -4,11 +4,13 @@ import lombok.Data;
@Data
@Data
public
class
BuDunGenDto
{
public
class
BuDunGenDto
{
private
Double
day
;
private
String
station_name
;
private
Double
month
;
private
Double
actual_installed_capacity
;
private
Double
year
;
private
Double
day
;
private
Double
month_complete
;
private
Double
month
;
private
Double
year_complete
;
private
Double
year
;
private
Double
year_hour_number
;
private
Double
month_complete
;
private
Double
cumulative
;
private
Double
year_complete
;
private
Double
year_hour_number
;
private
Double
cumulative
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CoreCommonServiceImpl.java
View file @
aa297b84
...
@@ -39,7 +39,7 @@ public class CoreCommonServiceImpl implements CoreCommonService {
...
@@ -39,7 +39,7 @@ public class CoreCommonServiceImpl implements CoreCommonService {
});
});
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
return
result
;
return
new
ArrayList
<>()
;
}
}
return
result
;
return
result
;
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
View file @
aa297b84
...
@@ -361,7 +361,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -361,7 +361,7 @@ public class MonitorServiceImpl implements MonitorService {
AtomicReference
<
Double
>
fdzannualPower
=
new
AtomicReference
<>(
0.0
);
AtomicReference
<
Double
>
fdzannualPower
=
new
AtomicReference
<>(
0.0
);
AtomicReference
<
Double
>
gfzannualPower
=
new
AtomicReference
<>(
0.0
);
AtomicReference
<
Double
>
gfzannualPower
=
new
AtomicReference
<>(
0.0
);
List
<
CoreValuesDto
>
coreValuesDtos
=
coreCommonService
.
getValuesByStationNamesAndPointsNames
(
null
,
null
);
List
<
CoreValuesDto
>
coreValuesDtos
=
coreCommonService
.
getValuesByStationNamesAndPointsNames
(
null
,
null
);
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_province_station_item
+
"&provinceName"
+
provinceName
;
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_province_station_item
+
"&provinceName
=
"
+
provinceName
;
List
<
BuDunStationDetailInfo
>
buDunStationDetailInfos
=
httpRequestUtil
.
getResPonse
(
requestUrl
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunStationDetailInfo
.
class
);
List
<
BuDunStationDetailInfo
>
buDunStationDetailInfos
=
httpRequestUtil
.
getResPonse
(
requestUrl
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunStationDetailInfo
.
class
);
if
(
buDunStationDetailInfos
.
size
()
>
0
)
{
if
(
buDunStationDetailInfos
.
size
()
>
0
)
{
buDunStationDetailInfos
.
forEach
(
buDunStationDetailInfo
->
{
buDunStationDetailInfos
.
forEach
(
buDunStationDetailInfo
->
{
...
@@ -487,7 +487,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -487,7 +487,7 @@ public class MonitorServiceImpl implements MonitorService {
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_area_item_url
;
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_area_item_url
;
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(!
areaName
.
contains
(
Constants
.
areaChinese
))
{
if
(!
areaName
.
contains
(
Constants
.
areaChinese
))
{
areaName
=
Constants
.
areaChinese
;
areaName
=
areaName
+
Constants
.
areaChinese
;
}
}
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
}
}
...
@@ -579,7 +579,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -579,7 +579,7 @@ public class MonitorServiceImpl implements MonitorService {
List
<
HashMap
<
String
,
String
>>
mapList
=
new
ArrayList
<>();
List
<
HashMap
<
String
,
String
>>
mapList
=
new
ArrayList
<>();
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_month_top_url
+
"&topValue=5"
;
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_month_top_url
+
"&topValue=5"
;
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(
areaName
.
contains
(
Constants
.
areaChinese
))
{
if
(
!
areaName
.
contains
(
Constants
.
areaChinese
))
{
areaName
=
areaName
+
Constants
.
areaChinese
;
areaName
=
areaName
+
Constants
.
areaChinese
;
}
}
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
...
@@ -646,7 +646,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -646,7 +646,7 @@ public class MonitorServiceImpl implements MonitorService {
List
<
StationBasic
>
gfdzlist
=
new
ArrayList
<>();
List
<
StationBasic
>
gfdzlist
=
new
ArrayList
<>();
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_hours_num_top
+
"&topValue=3&tabValue="
+
tabValue
;
String
requestUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_hours_num_top
+
"&topValue=3&tabValue="
+
tabValue
;
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(!
ObjectUtils
.
isEmpty
(
areaName
))
{
if
(
areaName
.
contains
(
Constants
.
areaChinese
))
{
if
(
!
areaName
.
contains
(
Constants
.
areaChinese
))
{
areaName
=
areaName
+
Constants
.
areaChinese
;
areaName
=
areaName
+
Constants
.
areaChinese
;
}
}
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
requestUrl
=
requestUrl
+
"&areaName="
+
areaName
;
...
...
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