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
94a897c6
Commit
94a897c6
authored
Jul 18, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘获取全国场站分类信息、获取区域长场站信息接口编写
parent
221c3aea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
14 deletions
+40
-14
MonitoringMapController.java
.../module/jxiop/biz/controller/MonitoringMapController.java
+17
-3
HomeMapStationInfoDto.java
...amos/boot/module/jxiop/biz/dto/HomeMapStationInfoDto.java
+22
-0
MapAreaInfoDto.java
...eejoin/amos/boot/module/jxiop/biz/dto/MapAreaInfoDto.java
+0
-10
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+0
-0
application.properties
...iop-monitor-biz/src/main/resources/application.properties
+1
-1
No files found.
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 @
94a897c6
...
@@ -31,6 +31,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...
@@ -31,6 +31,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@RestController
@Api
(
tags
=
"监盘地图接口"
)
@Api
(
tags
=
"监盘地图接口"
)
...
@@ -61,9 +62,22 @@ public class MonitoringMapController extends BaseController {
...
@@ -61,9 +62,22 @@ public class MonitoringMapController extends BaseController {
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getTabsByStationBasicId
(
stationBasicId
));
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getTabsByStationBasicId
(
stationBasicId
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页地图"
)
@ApiOperation
(
value
=
"监盘首页地图
-全国
"
)
@GetMapping
(
"/getAreaInfo"
)
@GetMapping
(
"/getAreaInfo"
)
public
ResponseModel
<
List
<
MapAreaInfoDto
>>
getAreaInfo
(
@RequestParam
(
required
=
false
)
String
areaName
)
{
public
ResponseModel
<
List
<
MapAreaInfoDto
>>
getAreaInfo
()
{
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getAreaInfo
(
areaName
));
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getAreaInfo
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页地图-片区"
)
@GetMapping
(
"/getStaitonListInfoByAreaName"
)
public
ResponseModel
<
List
<
HomeMapStationInfoDto
>>
getStaitonListInfoByAreaName
(
@RequestParam
(
required
=
true
)
String
areaName
)
{
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getStaitonListInfoByAreaName
(
areaName
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"监盘首页-场站分类信息"
)
@GetMapping
(
"/getStaionCategoryInfo"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
getStaionCategoryInfo
(
@RequestParam
(
required
=
false
)
String
areaName
)
{
return
ResponseHelper
.
buildResponse
(
monitoringServiceImpl
.
getStaionCategoryInfo
(
areaName
));
}
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/HomeMapStationInfoDto.java
0 → 100644
View file @
94a897c6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
dto
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.Map
;
@Data
public
class
HomeMapStationInfoDto
{
//场站id
String
stationId
;
//当前功率
String
currentPower
=
"0"
;
//风速辐照度
String
speendOrirradiate
;
//场站类型
String
stationType
;
//场站装机容量
String
stationInstalledCapacity
;
//场站经纬度
List
<
String
>
stationPosition
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/MapAreaInfoDto.java
View file @
94a897c6
...
@@ -27,14 +27,4 @@ public class MapAreaInfoDto {
...
@@ -27,14 +27,4 @@ public class MapAreaInfoDto {
String
installedCapacity
=
"0"
;
String
installedCapacity
=
"0"
;
//当日发电量
//当日发电量
String
electricityGenerationOfDay
=
"0"
;
String
electricityGenerationOfDay
=
"0"
;
//当前功率
String
currentPower
=
"0"
;
//风速辐照度
String
speendOrirradiate
;
//场站类型
String
stationType
;
//场站装机容量
String
stationInstalledCapacity
;
//场站经纬度
Map
<
String
,
String
>
stationPosition
;
}
}
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 @
94a897c6
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/application.properties
View file @
94a897c6
spring.application.name
=
AMOS-JXIOP-MONITOR
spring.application.name
=
AMOS-JXIOP-MONITOR
-CT
server.servlet.context-path
=
/jxiop-monitor
server.servlet.context-path
=
/jxiop-monitor
server.port
=
33200
server.port
=
33200
server.uri-encoding
=
UTF-8
server.uri-encoding
=
UTF-8
...
...
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