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
26be8ab6
Commit
26be8ab6
authored
Oct 18, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序问题修改
parent
e503abdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
BigScreenAnalyseController.java
...dule/jxiop/biz/controller/BigScreenAnalyseController.java
+8
-8
IdxBizFanHealthIndexMapper.xml
...n/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
+14
-5
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 @
26be8ab6
...
@@ -256,7 +256,7 @@ public class BigScreenAnalyseController extends BaseController {
...
@@ -256,7 +256,7 @@ public class BigScreenAnalyseController extends BaseController {
HashMap
<
String
,
Integer
>
wxMap
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
wxMap
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
zyMap
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
zyMap
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
jgMap
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
jgMap
=
new
HashMap
<>();
Set
<
String
>
list
=
new
HashSet
<>();
LinkedHashSet
<
String
>
list
=
new
Linked
HashSet
<>();
allEquipAlarmInfo
.
forEach
(
item
->
{
allEquipAlarmInfo
.
forEach
(
item
->
{
if
(
"危险"
.
equals
(
item
.
get
(
"warningName"
)))
{
if
(
"危险"
.
equals
(
item
.
get
(
"warningName"
)))
{
wxMap
.
put
(
item
.
get
(
"station"
).
toString
(),
Integer
.
parseInt
(
item
.
get
(
"num"
).
toString
()));
wxMap
.
put
(
item
.
get
(
"station"
).
toString
(),
Integer
.
parseInt
(
item
.
get
(
"num"
).
toString
()));
...
@@ -549,13 +549,13 @@ public class BigScreenAnalyseController extends BaseController {
...
@@ -549,13 +549,13 @@ public class BigScreenAnalyseController extends BaseController {
if
(
100.0
==
equipmentHealthScore
)
{
if
(
100.0
==
equipmentHealthScore
)
{
item
.
put
(
"warningName"
,
"安全"
);
item
.
put
(
"warningName"
,
"安全"
);
}
else
{
}
else
{
LambdaQueryWrapper
<
IdxBiz
Fan
HealthLevel
>
query
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
IdxBiz
Pv
HealthLevel
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
IdxBiz
Fan
HealthLevel:
:
getAnalysisObjType
,
"设备"
);
query
.
eq
(
IdxBiz
Pv
HealthLevel:
:
getAnalysisObjType
,
"设备"
);
query
.
eq
(
IdxBiz
FanHealthLevel:
:
getStatus
,
stationBasic
.
getStationName
());
query
.
eq
(
IdxBiz
PvHealthLevel:
:
getStatus
,
item
.
get
(
"station"
).
toString
());
query
.
lt
(
IdxBiz
Fan
HealthLevel:
:
getGroupLowerLimit
,
equipmentHealthScore
);
query
.
lt
(
IdxBiz
Pv
HealthLevel:
:
getGroupLowerLimit
,
equipmentHealthScore
);
query
.
ge
(
IdxBiz
Fan
HealthLevel:
:
getGroupUpperLimit
,
equipmentHealthScore
);
query
.
ge
(
IdxBiz
Pv
HealthLevel:
:
getGroupUpperLimit
,
equipmentHealthScore
);
IdxBiz
FanHealthLevel
idxBizFanHealthLevel
=
idxBizFan
HealthLevelMapper
.
selectOne
(
query
);
IdxBiz
PvHealthLevel
idxBizPvHealthLevel
=
idxBizPv
HealthLevelMapper
.
selectOne
(
query
);
item
.
put
(
"warningName"
,
idxBiz
Fan
HealthLevel
.
getHealthLevel
());
item
.
put
(
"warningName"
,
idxBiz
Pv
HealthLevel
.
getHealthLevel
());
}
}
item
.
put
(
"healthIndex"
,
equipmentHealthScore
);
item
.
put
(
"healthIndex"
,
equipmentHealthScore
);
String
subarray
=
CharSequenceUtil
.
replace
(
item
.
get
(
"subarray"
).
toString
(),
"#"
,
""
);
String
subarray
=
CharSequenceUtil
.
replace
(
item
.
get
(
"subarray"
).
toString
(),
"#"
,
""
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
26be8ab6
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
WARNING_NAME
WARNING_NAME
) a
) a
ORDER BY
ORDER BY
a.allNum
desc
a.allNum
ASC
</select>
</select>
...
@@ -291,10 +291,18 @@
...
@@ -291,10 +291,18 @@
<select
id=
"getAllEquipAlarmInfoAnalysisByStationType"
resultType=
"java.util.Map"
>
<select
id=
"getAllEquipAlarmInfoAnalysisByStationType"
resultType=
"java.util.Map"
>
SELECT
SELECT
<!-- ( SELECT POINT_NAME FROM ${tableName2} WHERE GATEWAY_ID = a.GATEWAY_ID AND INDEX_ADDRESS = a.INDEX_ADDRESS ) AS pointName,-->
concat(#{stationType}, '-', a.POINT_NAME) as pointName,
concat(#{stationType}, '-', a.POINT_NAME) as pointName,
a.WARNING_NAME as warningName,
a.WARNING_NAME as warningName,
count(1) as num
count(1) as num,
(select count(1) from ${tableName} as tb
<where>
tb.DISPOSOTION_STATE = '未处置'
and tb.POINT_NAME = a.POINT_NAME
<if
test=
"areaCode != null and areaCode != ''"
>
and tb.ARAE like concat('%', #{areaCode}, '%')
</if>
</where>
) AS totalNum
FROM
FROM
${tableName} a
${tableName} a
<where>
<where>
...
@@ -307,7 +315,7 @@
...
@@ -307,7 +315,7 @@
warningName
warningName
having pointName IS NOT NULL
having pointName IS NOT NULL
AND pointName != ''
AND pointName != ''
order by
n
um asc
order by
totalN
um asc
</select>
</select>
<select
id=
"getAllEquipAlarmInfoAnalysisByArea"
resultType=
"java.util.Map"
>
<select
id=
"getAllEquipAlarmInfoAnalysisByArea"
resultType=
"java.util.Map"
>
...
@@ -507,7 +515,8 @@
...
@@ -507,7 +515,8 @@
<select
id=
"getPvInfoByPage"
resultType=
"java.util.Map"
>
<select
id=
"getPvInfoByPage"
resultType=
"java.util.Map"
>
SELECT
SELECT
SUBARRAY as subarray
SUBARRAY as subarray,
STATION AS station
FROM
FROM
idx_biz_pv_point_process_variable_classification
idx_biz_pv_point_process_variable_classification
<where>
<where>
...
...
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