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
e17cd777
Commit
e17cd777
authored
Oct 25, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口数据排序
parent
c052b9b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
IdxBizFanHealthIndexController.java
.../jxiop/biz/controller/IdxBizFanHealthIndexController.java
+19
-6
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/IdxBizFanHealthIndexController.java
View file @
e17cd777
...
@@ -278,12 +278,25 @@ public class IdxBizFanHealthIndexController extends BaseController {
...
@@ -278,12 +278,25 @@ public class IdxBizFanHealthIndexController extends BaseController {
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getFanEquipStatusByStation
(
String
STATION
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getFanEquipStatusByStation
(
String
STATION
)
{
Map
<
String
,
Object
>
map
=
idxBizFanHealthIndexServiceImpl
.
getFanEquipStatusByStation
(
STATION
);
Map
<
String
,
Object
>
map
=
idxBizFanHealthIndexServiceImpl
.
getFanEquipStatusByStation
(
STATION
);
List
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
for
(
String
s
:
map
.
keySet
())
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"name"
,
s
);
Map
<
String
,
Object
>
anquan
=
new
HashMap
<>();
result
.
put
(
"value"
,
map
.
get
(
s
));
anquan
.
put
(
"name"
,
"安全"
);
maps
.
add
(
result
);
anquan
.
put
(
"value"
,
map
.
get
(
"安全"
));
}
maps
.
add
(
anquan
);
Map
<
String
,
Object
>
zhuyi
=
new
HashMap
<>();
zhuyi
.
put
(
"name"
,
"注意"
);
zhuyi
.
put
(
"value"
,
map
.
get
(
"注意"
));
maps
.
add
(
zhuyi
);
Map
<
String
,
Object
>
jinggao
=
new
HashMap
<>();
jinggao
.
put
(
"name"
,
"警告"
);
jinggao
.
put
(
"value"
,
map
.
get
(
"警告"
));
maps
.
add
(
jinggao
);
Map
<
String
,
Object
>
weixian
=
new
HashMap
<>();
weixian
.
put
(
"name"
,
"危险"
);
weixian
.
put
(
"value"
,
map
.
get
(
"危险"
));
maps
.
add
(
weixian
);
return
ResponseHelper
.
buildResponse
(
maps
);
return
ResponseHelper
.
buildResponse
(
maps
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
e17cd777
...
@@ -1196,9 +1196,7 @@
...
@@ -1196,9 +1196,7 @@
GROUP BY
GROUP BY
STATION,
STATION,
HEALTH_LEVEL
HEALTH_LEVEL
) a
<where>
) a
</where>
</select>
</select>
</mapper>
</mapper>
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