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
e68f67b8
Commit
e68f67b8
authored
Mar 14, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化告警列表查询
parent
9bca8915
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+15
-19
No files found.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
e68f67b8
...
...
@@ -163,10 +163,7 @@
iot_code = #{iotCode}
</select>
<select
id=
"page"
resultType=
"java.util.HashMap"
>
SELECT
d.*
FROM
(
SELECT
wlesal.id,
wlesal.org_code,
...
...
@@ -205,33 +202,32 @@
left join wl_warehouse_structure as ware on wsd.warehouse_structure_id = ware.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
) d
<where>
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
and d.warehouseStructureName like
<where>
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
and CONCAT_WS(' ',ware.full_name,wsd.description) like
concat(concat("%",#{param.warehouseStructureName}),"%")
</if>
<if
test=
"param.equipCode != null and param.equipCode != ''"
>
AND
d.fireEquipmentC
ode like
<if
test=
"param.equipCode != null and param.equipCode != ''"
>
AND
wles.c
ode like
concat(concat("%",#{param.equipCode}),"%")
</if>
<if
test=
"param.beginDate!=null"
>
AND
d.createD
ate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND
d.createD
ate
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND
d
.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'FIREALARM'"
>
AND
d
.type = #{param.alarmType}
</if>
<if
test=
"param.orgCode != null and param.orgCode != ''"
>
AND
d
.org_code = #{param.orgCode}
</if>
<if
test=
"param.type != null and param.type != ''"
>
AND
d
.type = #{param.type}
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 1"
>
AND
d.handleStatus = '已处理'
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 2"
>
AND
d.handleStatus = '未处理'
</if>
<if
test=
"param.beginDate!=null"
>
AND
wlesal.create_d
ate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND
wlesal.create_d
ate
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND
wlesal
.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'FIREALARM'"
>
AND
wlesal
.type = #{param.alarmType}
</if>
<if
test=
"param.orgCode != null and param.orgCode != ''"
>
AND
wlesal
.org_code = #{param.orgCode}
</if>
<if
test=
"param.type != null and param.type != ''"
>
AND
wlesal
.type = #{param.type}
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 1"
>
AND
wlesal.confirm_type IS NOT NULL
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 2"
>
AND
wlesal.confirm_type IS NULL
</if>
<if
test=
"param.system != null and param.system != ''"
>
AND find_in_set(#{param.system},
d.systemI
d)
AND find_in_set(#{param.system},
wles.system_i
d)
</if>
<if
test=
"param.buildIds!=null"
>
AND
d.buildI
d IN
AND
wlesal.build_i
d IN
<foreach
item=
"item"
collection=
"param.buildIds"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
</if>
</where>
ORDER BY
d.createD
ate DESC
ORDER BY
wlesal.create_d
ate DESC
</select>
<select
id=
"count"
resultType=
"java.lang.Integer"
>
SELECT
...
...
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