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
d785ccf7
Commit
d785ccf7
authored
May 21, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改现场fenxi问题
parent
d5ad231b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
20 deletions
+96
-20
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+2
-2
IdxBizFanHealthIndexMapper.java
.../module/jxiop/biz/mapper2/IdxBizFanHealthIndexMapper.java
+2
-0
IdxBizFanHealthIndexMapper.xml
...n/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
+87
-16
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+5
-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/TDBigScreenAnalyseController.java
View file @
d785ccf7
...
@@ -172,11 +172,11 @@ public class TDBigScreenAnalyseController extends BaseController {
...
@@ -172,11 +172,11 @@ public class TDBigScreenAnalyseController extends BaseController {
return
s
+
" 00:00:00"
;
return
s
+
" 00:00:00"
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
Object
>>
healthListInfo
=
fanHealthIndexMapper
.
getInfoByDate
(
finalAreaCode
,
List
<
Map
<
String
,
Object
>>
healthListInfo
=
fanHealthIndexMapper
.
getInfoByDate
(
finalAreaCode
,
finalStationCode
,
fullD
ateList
);
finalStationCode
,
d
ateList
);
Map
<
String
,
Object
>
map
=
healthListInfo
.
stream
().
collect
(
Collectors
Map
<
String
,
Object
>
map
=
healthListInfo
.
stream
().
collect
(
Collectors
.
toMap
(
i
->
String
.
valueOf
(
i
.
get
(
"recdate"
)),
i
->
i
.
get
(
"healthindex"
),
(
key1
,
key2
)
->
key2
));
.
toMap
(
i
->
String
.
valueOf
(
i
.
get
(
"recdate"
)),
i
->
i
.
get
(
"healthindex"
),
(
key1
,
key2
)
->
key2
));
for
(
String
date
:
dateList
)
{
for
(
String
date
:
dateList
)
{
String
value
=
map
.
get
(
date
+
" 00:00:00"
)
!=
null
?
String
.
valueOf
(
map
.
get
(
date
+
" 00:00:00"
))
String
value
=
map
.
get
(
date
)
!=
null
?
String
.
valueOf
(
map
.
get
(
date
))
:
"100"
;
:
"100"
;
valueList
.
add
(
String
.
valueOf
(
Math
.
round
(
Double
.
valueOf
(
value
)
*
10.0
)
/
10.0
));
valueList
.
add
(
String
.
valueOf
(
Math
.
round
(
Double
.
valueOf
(
value
)
*
10.0
)
/
10.0
));
}
}
...
...
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 @
d785ccf7
...
@@ -23,6 +23,8 @@ public interface IdxBizFanHealthIndexMapper extends BaseMapper<IdxBizFanHealthIn
...
@@ -23,6 +23,8 @@ public interface IdxBizFanHealthIndexMapper extends BaseMapper<IdxBizFanHealthIn
BigDecimal
getHealthScoreInfo
(
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"stationCode"
)
String
stationCode
);
BigDecimal
getHealthScoreInfo
(
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"stationCode"
)
String
stationCode
);
BigDecimal
getHealthScoreInfoNew
(
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"stationCode"
)
String
stationCode
,
@Param
(
"analysisType"
)
String
analysisType
);
BigDecimal
getHealthScoreInfoByLatest
(
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"stationCode"
)
String
stationCode
);
BigDecimal
getHealthScoreInfoByLatest
(
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"stationCode"
)
String
stationCode
);
BigDecimal
getHealthScoreInfoByStation
(
@Param
(
"stationCode"
)
String
stationCode
,
BigDecimal
getHealthScoreInfoByStation
(
@Param
(
"stationCode"
)
String
stationCode
,
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
d785ccf7
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
d785ccf7
...
@@ -1240,9 +1240,8 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -1240,9 +1240,8 @@ public class MonitorFanIdxController extends BaseController {
BoolQueryBuilder
boolMustAll
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
boolMustAll
=
QueryBuilders
.
boolQuery
();
//警情状态
List
<
QueryBuilder
>
should
=
boolMustAll
.
should
();
List
<
QueryBuilder
>
should
=
boolMustAll
.
should
();
String
[]
keys
=
new
String
[]{
"日发电量"
,
"月发电量"
,
"年发电量"
};
String
[]
keys
=
new
String
[]{
"日发电量"
,
"月发电量"
,
"年发电量"
,
"有功功率"
};
List
<
String
>
list
=
Arrays
.
asList
(
keys
);
List
<
String
>
list
=
Arrays
.
asList
(
keys
);
BoolQueryBuilder
boolQueryBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
boolQueryBuilder
=
QueryBuilders
.
boolQuery
();
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
...
@@ -1303,6 +1302,8 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -1303,6 +1302,8 @@ public class MonitorFanIdxController extends BaseController {
break
;
break
;
case
"年发电量"
:
case
"年发电量"
:
map
.
put
(
"yearNum"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
value
)
*
CommonConstans
.
pvGenPoweActorCurrentData
));
map
.
put
(
"yearNum"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
value
)
*
CommonConstans
.
pvGenPoweActorCurrentData
));
case
"有功功率"
:
map
.
put
(
"yggl"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
value
)));
}
}
}
else
{
}
else
{
...
@@ -1315,6 +1316,8 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -1315,6 +1316,8 @@ public class MonitorFanIdxController extends BaseController {
break
;
break
;
case
"年发电量"
:
case
"年发电量"
:
map
.
put
(
"yearNum"
,
value
);
map
.
put
(
"yearNum"
,
value
);
case
"有功功率"
:
map
.
put
(
"yggl"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
value
)));
// case CommonConstans.taiHeGenIndicatorDay:
// case CommonConstans.taiHeGenIndicatorDay:
// map.put("dayNum", value);
// map.put("dayNum", value);
// break;
// break;
...
...
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