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
13b156ee
Commit
13b156ee
authored
Apr 12, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换service为新数据源service
parent
b6ea82f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+1
-0
MonitoringMapController.java
.../module/jxiop/biz/controller/MonitoringMapController.java
+9
-6
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 @
13b156ee
...
...
@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.constants.CommonConstans;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.DeaviationRateDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.ESEquipmentsDTO
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.ResultsData
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.MonitorService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.EquipAlarmEventServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.MonitorFanIndicatorImpl
;
...
...
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 @
13b156ee
...
...
@@ -11,6 +11,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IMapRegionService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.*
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.Test
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.MonitorService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.*
;
//import com.yeejoin.amos.component.influxdb.InfluxDbConnection;
import
io.swagger.annotations.Api
;
...
...
@@ -40,6 +41,8 @@ import java.util.logging.Handler;
public
class
MonitoringMapController
extends
BaseController
{
@Value
(
"${sec.startdate:2017-06-30}"
)
String
secStartDate
;
@Autowired
MonitorService
monitorService
;
@Autowired
MonitoringServiceImpl
monitoringServiceImpl
;
...
...
@@ -58,7 +61,7 @@ public class MonitoringMapController extends BaseController {
@ApiOperation
(
value
=
"获取监盘全国地图数据"
)
@GetMapping
(
"/nationwide"
)
public
ResponseModel
<
List
<
RegionNationWideDto
>>
getNationWideInfo
(
@RequestParam
(
value
=
"provinceName"
,
required
=
false
)
String
provinceName
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getNationWideInfo
(
provinceName
,
type
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getNationWideInfo
(
provinceName
,
type
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -79,7 +82,7 @@ public class MonitoringMapController extends BaseController {
@ApiOperation
(
value
=
"获取区域电量指标完成情况"
)
@GetMapping
(
"/getCompletionOfPowerIndicatorsByProvinceName"
)
public
ResponseModel
<
ResultsData
>
getCompletionOfPowerIndicatorsByProvinceName
(
@RequestParam
(
required
=
true
)
int
current
,
@RequestParam
(
required
=
true
)
int
size
,
@RequestParam
(
required
=
true
)
String
provinceName
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getCompletionOfPowerIndicatorsByProvinceName
(
current
,
size
,
provinceName
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getCompletionOfPowerIndicatorsByProvinceName
(
current
,
size
,
provinceName
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -128,7 +131,7 @@ public class MonitoringMapController extends BaseController {
@ApiOperation
(
value
=
"监盘首页-社会贡献"
)
@GetMapping
(
"/getSocialContributionDtoList"
)
public
ResponseModel
<
Page
<
SocialContributionDto
>>
getSocialContributionDtoList
(
@RequestParam
(
required
=
false
)
String
areaName
,
@RequestParam
(
required
=
false
)
String
station
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getSocialContributionDtoList
(
areaName
,
station
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getSocialContributionDtoList
(
areaName
,
station
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -142,7 +145,7 @@ public class MonitoringMapController extends BaseController {
@ApiOperation
(
value
=
"监盘首页-发电量详情"
)
@GetMapping
(
"/getDetailsOnPowergeneration"
)
public
ResponseModel
<
Page
<
HashMap
<
String
,
String
>>>
getDetailsOnPowergeneration
(
@RequestParam
(
required
=
false
)
String
areaName
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getDetailsOnPowergeneration
(
areaName
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getDetailsOnPowergeneration
(
areaName
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -156,14 +159,14 @@ public class MonitoringMapController extends BaseController {
@ApiOperation
(
value
=
"监盘首页-发电top5"
)
@GetMapping
(
"/getPowerGenerationTrendsOfCompletionTopFive"
)
public
ResponseModel
<
Page
<
HashMap
<
String
,
String
>>>
getPowerGenerationTrendsOfCompletionTopFive
(
@RequestParam
(
required
=
false
)
String
areaName
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getPowerGenerationTrendsOfCompletionTopFive
(
areaName
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getPowerGenerationTrendsOfCompletionTopFive
(
areaName
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页-发电小时排名top3"
)
@GetMapping
(
"/getPowerGenerationTrendsOfCompletionTopThree"
)
public
ResponseModel
<
Page
<
HashMap
<
String
,
String
>>>
getPowerGenerationTrendsOfCompletionTopThree
(
@RequestParam
(
required
=
false
)
String
areaName
,
@RequestParam
(
required
=
false
,
defaultValue
=
"0"
)
String
tabValue
)
{
return
ResponseHelper
.
buildResponse
(
monitor
ingServiceImpl
.
getPowerGenerationTrendsOfCompletionTopThree
(
tabValue
,
areaName
));
return
ResponseHelper
.
buildResponse
(
monitor
Service
.
getPowerGenerationTrendsOfCompletionTopThree
(
tabValue
,
areaName
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
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