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
a6ef2369
Commit
a6ef2369
authored
Aug 02, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
31dc86ce
a87b3bf1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+25
-2
MonitoringMapController.java
.../module/jxiop/biz/controller/MonitoringMapController.java
+7
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+0
-0
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
a6ef2369
...
@@ -493,10 +493,11 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -493,10 +493,11 @@ public class MonitorFanIdxController extends BaseController {
@GetMapping
(
"/electricQuantity"
)
@GetMapping
(
"/electricQuantity"
)
public
ResponseModel
<
ResultsData
>
getElectricQuantityList
(
@RequestParam
(
value
=
"current"
)
int
current
,
public
ResponseModel
<
ResultsData
>
getElectricQuantityList
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"stationId"
)
String
stationId
)
{
@RequestParam
(
value
=
"stationId"
)
String
stationId
,
@RequestParam
(
value
=
"stationType"
,
required
=
false
)
String
stationType
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
gatewayId
=
stationBasic
.
getBoosterGatewayId
();
String
gatewayId
=
stationBasic
.
getBoosterGatewayId
();
ResultsData
resultsData
=
monitorFanIndicatorImpl
.
getElectricQuantityList
(
current
,
size
,
gatewayId
);
ResultsData
resultsData
=
monitorFanIndicatorImpl
.
getElectricQuantityList
(
current
,
size
,
gatewayId
,
stationType
);
return
ResponseHelper
.
buildResponse
(
resultsData
);
return
ResponseHelper
.
buildResponse
(
resultsData
);
}
}
...
@@ -705,6 +706,7 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -705,6 +706,7 @@ public class MonitorFanIdxController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"箱变实时开关状态"
)
@ApiOperation
(
value
=
"箱变实时开关状态"
)
@GetMapping
(
"/equipSwitchStatus"
)
@GetMapping
(
"/equipSwitchStatus"
)
@Scheduled
(
cron
=
"0/10 * * * * ? "
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getEquipSwitchStatus
()
{
public
ResponseModel
<
Map
<
String
,
Object
>>
getEquipSwitchStatus
()
{
...
@@ -729,4 +731,25 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -729,4 +731,25 @@ public class MonitorFanIdxController extends BaseController {
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
return
ResponseHelper
.
buildResponse
(
monitorFanIndicatorImpl
.
collectingBox
(
gatewayId
,
current
,
size
));
return
ResponseHelper
.
buildResponse
(
monitorFanIndicatorImpl
.
collectingBox
(
gatewayId
,
current
,
size
));
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"光伏 运行列表"
)
@GetMapping
(
"/solarPowerOperation"
)
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
solarPowerOperation
(
@RequestParam
(
value
=
"stationId"
)
String
stationId
,
@RequestParam
(
value
=
"current"
)
int
current
,
int
size
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
List
<
Map
<
String
,
Object
>>
statusMonitoring
=
monitorFanIndicator
.
solarPowerOperation
(
gatewayId
);
List
<
Map
<
String
,
Object
>>
collect
=
statusMonitoring
.
stream
()
.
skip
((
long
)
(
current
-
1
)
*
size
)
.
limit
(
size
)
.
collect
(
Collectors
.
toList
());
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
result
.
setRecords
(
collect
);
result
.
setCurrent
(
current
);
result
.
setTotal
(
statusMonitoring
.
size
());
return
ResponseHelper
.
buildResponse
(
result
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitoringMapController.java
View file @
a6ef2369
...
@@ -137,4 +137,11 @@ public class MonitoringMapController extends BaseController {
...
@@ -137,4 +137,11 @@ public class MonitoringMapController extends BaseController {
public
ResponseModel
<
Page
<
HashMap
<
String
,
String
>>>
getPowerGenerationTrendsOfCompletionTopThree
(
@RequestParam
(
required
=
false
)
String
areaName
,
@RequestParam
(
required
=
false
,
defaultValue
=
"0"
)
String
tabValue
)
{
public
ResponseModel
<
Page
<
HashMap
<
String
,
String
>>>
getPowerGenerationTrendsOfCompletionTopThree
(
@RequestParam
(
required
=
false
)
String
areaName
,
@RequestParam
(
required
=
false
,
defaultValue
=
"0"
)
String
tabValue
)
{
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getPowerGenerationTrendsOfCompletionTopThree
(
tabValue
,
areaName
));
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getPowerGenerationTrendsOfCompletionTopThree
(
tabValue
,
areaName
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"运行监盘-获取全国数据"
)
@GetMapping
(
"/getTotalData"
)
public
void
getTotalData
()
{
monitoringServiceImpl
.
getTotalData
();
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
a6ef2369
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
a6ef2369
This diff is collapsed.
Click to expand it.
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