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
d1d7a071
Commit
d1d7a071
authored
Aug 15, 2024
by
lilongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、大屏-分析-场站/设备/风电/光伏层级-健康状态指数与趋势折线图数据按照时间正序排序
parent
349f7f50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+4
-4
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 @
d1d7a071
...
@@ -27,10 +27,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl;
...
@@ -27,10 +27,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizFanWarningRuleSetServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizFanWarningRuleSetServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizPvWarningRuleSetServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.IdxBizPvWarningRuleSetServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.*
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdMapper2.*
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanHealthIndex
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdengine.*
;
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.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
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
...
@@ -324,6 +321,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -324,6 +321,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisObjType
,
"场站"
).
and
(
wrapper
.
eq
(
FanHealthIndex:
:
getAnalysisObjType
,
"场站"
).
and
(
qw
->
qw
.
eq
(
FanHealthIndex:
:
getGatewayId
,
fanGatewayId
).
or
().
eq
(
FanHealthIndex:
:
getGatewayId
,
syzGatewayId
));
qw
->
qw
.
eq
(
FanHealthIndex:
:
getGatewayId
,
fanGatewayId
).
or
().
eq
(
FanHealthIndex:
:
getGatewayId
,
syzGatewayId
));
List
<
FanHealthIndex
>
fanHealthIndexList
=
fanHealthIndexMapper
.
selectList
(
wrapper
);
List
<
FanHealthIndex
>
fanHealthIndexList
=
fanHealthIndexMapper
.
selectList
(
wrapper
);
fanHealthIndexList
=
fanHealthIndexList
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndex:
:
getRecDate
)).
collect
(
Collectors
.
toList
());
valueList
=
fanHealthIndexList
.
stream
()
valueList
=
fanHealthIndexList
.
stream
()
.
map
(
t
->
String
.
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
...
@@ -339,6 +337,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -339,6 +337,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
orderByDesc
(
PvHealthIndex:
:
getTs
);
pvwrapper
.
last
(
"limit 15"
);
pvwrapper
.
last
(
"limit 15"
);
List
<
PvHealthIndex
>
pvHealthIndexList
=
pvHealthIndexMapper
.
selectList
(
pvwrapper
);
List
<
PvHealthIndex
>
pvHealthIndexList
=
pvHealthIndexMapper
.
selectList
(
pvwrapper
);
pvHealthIndexList
=
pvHealthIndexList
.
stream
().
sorted
(
Comparator
.
comparing
(
PvHealthIndex:
:
getRecDate
)).
collect
(
Collectors
.
toList
());
valueList
=
pvHealthIndexList
.
stream
()
valueList
=
pvHealthIndexList
.
stream
()
.
map
(
t
->
String
.
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
...
@@ -359,6 +358,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -359,6 +358,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
}
}
List
<
FanHealthIndex
>
fanHealthIndexList
=
fanHealthIndexMapper
.
selectList
(
wrapper
);
List
<
FanHealthIndex
>
fanHealthIndexList
=
fanHealthIndexMapper
.
selectList
(
wrapper
);
fanHealthIndexList
=
fanHealthIndexList
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndex:
:
getRecDate
)).
collect
(
Collectors
.
toList
());
valueList
=
fanHealthIndexList
.
stream
()
valueList
=
fanHealthIndexList
.
stream
()
.
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
.
map
(
t
->
String
.
valueOf
(
BigDecimal
.
valueOf
(
t
.
getHealthIndex
()).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
)))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
...
...
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