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
ff942e66
Commit
ff942e66
authored
Sep 20, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
ce55cd23
ae3bb228
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
6 deletions
+60
-6
BigScreenAnalyseController.java
...dule/jxiop/biz/controller/BigScreenAnalyseController.java
+23
-0
IdxBizFanHealthIndexMapper.java
.../module/jxiop/biz/mapper2/IdxBizFanHealthIndexMapper.java
+2
-0
IdxBizFanHealthIndexMapper.xml
...n/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
+29
-2
AnalysisFanStationController.java
...le/jxiop/biz/controller/AnalysisFanStationController.java
+4
-2
AnalysisFanStationImpl.java
...module/jxiop/biz/service/impl/AnalysisFanStationImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/BigScreenAnalyseController.java
View file @
ff942e66
...
@@ -223,4 +223,27 @@ public class BigScreenAnalyseController extends BaseController {
...
@@ -223,4 +223,27 @@ public class BigScreenAnalyseController extends BaseController {
return
ResponseHelper
.
buildResponse
(
resultMap
);
return
ResponseHelper
.
buildResponse
(
resultMap
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"场站预警信息统计图 - 雷达图"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/equipWarningRadarMap"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
assessIndexRadarMap
(
@RequestParam
(
required
=
false
,
value
=
"stationCode"
)
String
stationCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
idxBizFanHealthIndexMapper
.
equipWarningRadarMap
(
stationCode
);
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
List
<
List
<
String
>>
resultData
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
List
<
String
>
data
=
new
ArrayList
<>();
list
.
forEach
(
item
->
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"text"
,
item
.
get
(
"warningName"
));
resultList
.
add
(
map
);
data
.
add
(
item
.
get
(
"num"
).
toString
());
});
resultData
.
add
(
data
);
resultMap
.
put
(
"radar"
,
resultList
);
resultMap
.
put
(
"array"
,
resultData
);
return
ResponseHelper
.
buildResponse
(
resultMap
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/IdxBizFanHealthIndexMapper.java
View file @
ff942e66
...
@@ -28,4 +28,6 @@ public interface IdxBizFanHealthIndexMapper extends BaseMapper<IdxBizFanHealthIn
...
@@ -28,4 +28,6 @@ public interface IdxBizFanHealthIndexMapper extends BaseMapper<IdxBizFanHealthIn
List
<
Map
<
String
,
Object
>>
getHealthInfoByStation
(
@Param
(
"areaCode"
)
String
areaCode
);
List
<
Map
<
String
,
Object
>>
getHealthInfoByStation
(
@Param
(
"areaCode"
)
String
areaCode
);
List
<
Map
<
String
,
Object
>>
equipWarningRadarMap
(
@Param
(
"stationCode"
)
String
stationCode
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
ff942e66
...
@@ -216,6 +216,33 @@
...
@@ -216,6 +216,33 @@
a.STATION
a.STATION
</select>
</select>
<select
id=
"equipWarningRadarMap"
resultType=
"java.util.Map"
>
SELECT
a.warningName,
count( 1 ) AS num
FROM
(
SELECT
WARNING_NAME AS warningName
FROM
idx_biz_fan_warning_record
<where>
<if
test=
"stationCode != null and stationCode != ''"
>
station = #{stationCode}
</if>
</where>
UNION ALL
SELECT
WARNING_NAME AS warningName
FROM
idx_biz_pv_warning_record
<where>
<if
test=
"stationCode != null and stationCode != ''"
>
station = #{stationCode}
</if>
</where>
) a
GROUP BY
a.warningName
</select>
</mapper>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/AnalysisFanStationController.java
View file @
ff942e66
...
@@ -30,18 +30,20 @@ public class AnalysisFanStationController {
...
@@ -30,18 +30,20 @@ public class AnalysisFanStationController {
AnalysisFanStationImpl
analysisFanStationImpl
;
AnalysisFanStationImpl
analysisFanStationImpl
;
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"分析-风站
- 场站风速
"
)
@ApiOperation
(
value
=
"分析-风站
/光伏 - 场站风速/辐照强度
"
)
@GetMapping
(
"/getStationWindSpeedStatistics"
)
@GetMapping
(
"/getStationWindSpeedStatistics"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getStationWindSpeedStatistics
(
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
getStationWindSpeedStatistics
(
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
String
gatewayId
=
""
;
String
gatewayId
=
""
;
String
equipmentIndexName
=
"总辐射累计"
;
if
(
null
!=
stationId
)
{
if
(
null
!=
stationId
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
gatewayId
=
stationBasic
.
getBoosterGatewayId
();
gatewayId
=
stationBasic
.
getBoosterGatewayId
();
if
(
null
==
type
){
if
(
null
==
type
){
gatewayId
=
stationBasic
.
getFanGatewayId
();
gatewayId
=
stationBasic
.
getFanGatewayId
();
equipmentIndexName
=
"瞬时风速"
;
}
}
}
}
Map
<
String
,
Object
>
detailsWindSpeed
=
analysisFanStationImpl
.
getStationWindSpeedStatistics
(
gatewayId
);
Map
<
String
,
Object
>
detailsWindSpeed
=
analysisFanStationImpl
.
getStationWindSpeedStatistics
(
gatewayId
,
equipmentIndexName
);
return
ResponseHelper
.
buildResponse
(
detailsWindSpeed
);
return
ResponseHelper
.
buildResponse
(
detailsWindSpeed
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/AnalysisFanStationImpl.java
View file @
ff942e66
...
@@ -18,8 +18,8 @@ public class AnalysisFanStationImpl {
...
@@ -18,8 +18,8 @@ public class AnalysisFanStationImpl {
@Autowired
@Autowired
private
TemporaryDataMapper
temporaryDataMapper
;
private
TemporaryDataMapper
temporaryDataMapper
;
public
Map
<
String
,
Object
>
getStationWindSpeedStatistics
(
String
gatewayId
){
public
Map
<
String
,
Object
>
getStationWindSpeedStatistics
(
String
gatewayId
,
String
equipmentIndexName
){
List
<
Map
<
String
,
String
>>
list
=
temporaryDataMapper
.
getStationWindSpeedStatistics
(
gatewayId
,
"瞬时风速"
);
List
<
Map
<
String
,
String
>>
list
=
temporaryDataMapper
.
getStationWindSpeedStatistics
(
gatewayId
,
equipmentIndexName
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
String
>
valueList
=
new
ArrayList
<>();
List
<
String
>
valueList
=
new
ArrayList
<>();
Set
<
String
>
time
=
new
TreeSet
<>();
Set
<
String
>
time
=
new
TreeSet
<>();
...
...
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