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
b1f7f27e
Commit
b1f7f27e
authored
Oct 09, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加发电量趋势图
parent
688a14f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
MonitoringMapController.java
.../module/jxiop/biz/controller/MonitoringMapController.java
+29
-4
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitoringMapController.java
View file @
b1f7f27e
...
@@ -10,10 +10,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper;
...
@@ -10,10 +10,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.api.service.IMapRegionService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.*
;
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.entity.Test
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.MonitoringServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.RegionServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.StationBasicServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.TestServiceImpl
;
import
com.yeejoin.amos.component.influxdb.InfluxDbConnection
;
import
com.yeejoin.amos.component.influxdb.InfluxDbConnection
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -43,6 +40,9 @@ public class MonitoringMapController extends BaseController {
...
@@ -43,6 +40,9 @@ public class MonitoringMapController extends BaseController {
@Autowired
@Autowired
MonitoringServiceImpl
monitoringServiceImpl
;
MonitoringServiceImpl
monitoringServiceImpl
;
@Autowired
LargeScreenImpl
largeScreenImpl
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"获取监盘全国地图数据"
)
@ApiOperation
(
value
=
"获取监盘全国地图数据"
)
...
@@ -165,4 +165,29 @@ public class MonitoringMapController extends BaseController {
...
@@ -165,4 +165,29 @@ public class MonitoringMapController extends BaseController {
public
ResponseModel
<
HashMap
<
String
,
Object
>>
getTheStationPowerCurve
(
@RequestParam
(
required
=
false
)
String
stationId
,
@RequestParam
(
required
=
false
)
String
date
)
{
public
ResponseModel
<
HashMap
<
String
,
Object
>>
getTheStationPowerCurve
(
@RequestParam
(
required
=
false
)
String
stationId
,
@RequestParam
(
required
=
false
)
String
date
)
{
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getTheStationPowerCurve
(
stationId
,
date
));
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getTheStationPowerCurve
(
stationId
,
date
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页- 全国发电量趋势完成率"
)
@GetMapping
(
"/getqgqs"
)
public
ResponseModel
<
HashMap
<
String
,
List
<
String
>>>
getqgqs
()
{
largeScreenImpl
.
sendQYFDLMqttyfdqs
();
largeScreenImpl
.
sendQYFDLMqttyfd
();
return
ResponseHelper
.
buildResponse
(
null
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页- 全国发电量趋势完成率"
)
@GetMapping
(
"/getqyqs"
)
public
ResponseModel
<
HashMap
<
String
,
List
<
String
>>>
getqyqs
()
{
largeScreenImpl
.
gettimedateyfdqs
();
largeScreenImpl
.
gettimedateyfd
();
return
ResponseHelper
.
buildResponse
(
null
);
}
}
}
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 @
b1f7f27e
...
@@ -563,7 +563,7 @@ public List<Double> gettimedateyfd( ){
...
@@ -563,7 +563,7 @@ public List<Double> gettimedateyfd( ){
//获取区域月日发电量
//获取区域月日发电量
@Scheduled
(
cron
=
"0/10 * * * * ?"
)
@Scheduled
(
cron
=
"0/10 * * * * ?"
)
p
rivate
void
sendQYFDLMqttyfd
(){
p
ublic
void
sendQYFDLMqttyfd
(){
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
Map
<
String
,
List
<
StationCacheInfoDto
>>
belongAreaList
=
listStationCacheInfoDto
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getBelongArea
));
Map
<
String
,
List
<
StationCacheInfoDto
>>
belongAreaList
=
listStationCacheInfoDto
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getBelongArea
));
for
(
String
s
:
belongAreaList
.
keySet
())
{
for
(
String
s
:
belongAreaList
.
keySet
())
{
...
@@ -701,7 +701,7 @@ public List<Double> gettimedateyfd( ){
...
@@ -701,7 +701,7 @@ public List<Double> gettimedateyfd( ){
//区域发电完成趋势
//区域发电完成趋势
@Scheduled
(
cron
=
"0/10 * * * * ?"
)
@Scheduled
(
cron
=
"0/10 * * * * ?"
)
p
rivate
void
sendQYFDLMqttyfdqs
(){
p
ublic
void
sendQYFDLMqttyfdqs
(){
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
Map
<
String
,
List
<
StationCacheInfoDto
>>
belongAreaList
=
listStationCacheInfoDto
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getBelongArea
));
Map
<
String
,
List
<
StationCacheInfoDto
>>
belongAreaList
=
listStationCacheInfoDto
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getBelongArea
));
for
(
String
s
:
belongAreaList
.
keySet
())
{
for
(
String
s
:
belongAreaList
.
keySet
())
{
...
...
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