Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
94b5d4be
Commit
94b5d4be
authored
Jul 26, 2024
by
lilongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、大屏->光伏->光伏场各子阵状态->子系统各变量健康状态指数趋势查询修改
2、大屏->光伏->场站设备健康状态指数与趋势查询修改
parent
e6720fac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+4
-4
IdxBizFanHealthIndexMapper.xml
...n/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
+1
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
94b5d4be
...
@@ -69,10 +69,8 @@ import com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvHealthIndexDayMapper;
...
@@ -69,10 +69,8 @@ import com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvHealthIndexDayMapper;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvHealthIndexMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvHealthIndexMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvWaringRecordMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.PvWaringRecordMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanHealthIndex
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanHealthIndex
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanHealthIndexDay
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvHealthIndex
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvHealthIndex
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvHealthIndexDay
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdmapper.IndicatorDataMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdmapper.IndicatorDataMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.utils.TimeRangeUtil
;
import
com.yeejoin.amos.boot.module.jxiop.biz.utils.TimeRangeUtil
;
...
@@ -157,8 +155,8 @@ public class TDBigScreenAnalyseController extends BaseController {
...
@@ -157,8 +155,8 @@ public class TDBigScreenAnalyseController extends BaseController {
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisType
,
"按10分钟"
);
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisType
,
"按10分钟"
);
if
(
CharSequenceUtil
.
isNotEmpty
(
stationCode
))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
stationCode
))
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationCode
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationCode
);
stationCode
=
stationBasic
.
getFanGatewayId
();
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
stationCode
=
stationBasic
.
getFanGatewayId
();
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisObjType
,
"场站"
);
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisObjType
,
"场站"
);
wrapper
.
eq
(
FanHealthIndex:
:
getGatewayId
,
stationCode
);
wrapper
.
eq
(
FanHealthIndex:
:
getGatewayId
,
stationCode
);
FanHealthIndex
fanHealthIndex
=
fanHealthIndexMapper
.
selectOne
(
wrapper
);
FanHealthIndex
fanHealthIndex
=
fanHealthIndexMapper
.
selectOne
(
wrapper
);
...
@@ -175,6 +173,7 @@ public class TDBigScreenAnalyseController extends BaseController {
...
@@ -175,6 +173,7 @@ public class TDBigScreenAnalyseController extends BaseController {
pvwrapper
.
eq
(
PvHealthIndex:
:
getGatewayId
,
stationCode
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getGatewayId
,
stationCode
);
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
last
(
"limit 1"
);
pvwrapper
.
last
(
"limit 1"
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getAnalysisType
,
"按10分钟"
);
PvHealthIndex
pvHealthIndex
=
pvHealthIndexMapper
.
selectOne
(
pvwrapper
);
PvHealthIndex
pvHealthIndex
=
pvHealthIndexMapper
.
selectOne
(
pvwrapper
);
//预防空指针
//预防空指针
if
(
Objects
.
isNull
(
pvHealthIndex
))
{
if
(
Objects
.
isNull
(
pvHealthIndex
))
{
...
@@ -340,9 +339,10 @@ public class TDBigScreenAnalyseController extends BaseController {
...
@@ -340,9 +339,10 @@ public class TDBigScreenAnalyseController extends BaseController {
}
else
{
}
else
{
LambdaQueryWrapper
<
PvHealthIndex
>
pvwrapper
=
new
LambdaQueryWrapper
<
PvHealthIndex
>();
LambdaQueryWrapper
<
PvHealthIndex
>
pvwrapper
=
new
LambdaQueryWrapper
<
PvHealthIndex
>();
pvwrapper
.
eq
(
PvHealthIndex:
:
getAnalysisObjType
,
"场站"
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getAnalysisObjType
,
"场站"
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getGatewayId
,
s
tationCode
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getGatewayId
,
finalS
tationCode
);
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
last
(
"limit 15"
);
pvwrapper
.
last
(
"limit 15"
);
pvwrapper
.
eq
(
PvHealthIndex:
:
getAnalysisType
,
"按10分钟"
);
List
<
PvHealthIndex
>
pvHealthIndexList
=
pvHealthIndexMapper
.
selectList
(
pvwrapper
);
List
<
PvHealthIndex
>
pvHealthIndexList
=
pvHealthIndexMapper
.
selectList
(
pvwrapper
);
valueList
=
pvHealthIndexList
.
stream
().
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
())
valueList
=
pvHealthIndexList
.
stream
().
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
())
.
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
))).
collect
(
Collectors
.
toList
());
.
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
))).
collect
(
Collectors
.
toList
());
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
94b5d4be
...
@@ -656,9 +656,7 @@ FROM (
...
@@ -656,9 +656,7 @@ FROM (
</select>
</select>
<select
id=
"getPvSubSystemInfo"
resultType=
"java.util.Map"
>
<select
id=
"getPvSubSystemInfo"
resultType=
"java.util.Map"
>
SELECT
SELECT
IFNULL ( ROUND( MAX(HEALTH_INDEX), 2 ), 100 ) AS avgHealthIndex
IFNULL ( ROUND( MAX(HEALTH_INDEX), 2 ), 100 ) AS avgHealthIndex,
round(IFNULL( AVG( HEALTH_INDEX ), 100 ), 1) AS avgHealthIndex,
EQUIPMENT_NAME AS equipmentName
EQUIPMENT_NAME AS equipmentName
FROM
FROM
pv_health_index_latest_data
pv_health_index_latest_data
...
...
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