Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
1cfc435d
Commit
1cfc435d
authored
Dec 18, 2020
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改应急处置返回数据
parent
49e6c31a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
dbTemplate_alarm.xml
...ysStart/src/main/resources/db/mapper/dbTemplate_alarm.xml
+19
-3
dbTemplate_fire_equip.xml
...rt/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
+1
-1
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_alarm.xml
View file @
1cfc435d
...
...
@@ -79,6 +79,10 @@
<select
id=
"getAlarmSingleMapperPage"
resultType=
"java.util.HashMap"
>
SELECT
d.*
FROM
(
SELECT
wlesa.id,
wlesa.equipment_specific_id as fireEquipmentId,
wles.code as fireEquipmentCode,
...
...
@@ -99,15 +103,25 @@
WHEN 'FIREALARM' THEN '火灾报警'
WHEN 'BREAKDOWN' THEN '故障告警' ELSE wlesa.type
END AS type,
wlesa.
cre
ate_date as createDate,
wlesa.
upd
ate_date as createDate,
wlesa.recovery_date as recoveryDate,
wws.full_name as warehouseStructureName
wws.full_name as warehouseStructureName,
(
SELECT
group_concat(DISTINCT f.`name`)
FROM
f_equipment_fire_equipment efe
JOIN f_equipment f ON efe.equipment_id = f.id
JOIN wl_equipment_specific_index ind on ind.equipment_specific_id = efe.fire_equipment_id
) equipmentName
FROM wl_equipment_specific_alarm wlesa
left join wl_equipment_specific wles on wlesa.equipment_specific_id = wles.id
left join wl_stock_detail wlsd on wlsd.equipment_specific_id=wles.id
left join wl_warehouse_structure wws on wlsd.warehouse_structure_id = wws.id
left join wl_equipment_detail wled on wles.equipment_detail_id = wled.id
WHERE wled.`name` is not null
) d
WHERE 1=1
AND d.fireEquipmentName IS NOT NULL
<if
test=
"protectObj !=null and protectObj != '' "
>
and wled.`name` like concat(concat("%",#{protectObj}),"%")
</if>
<if
test=
"beginDate!=null"
>
and wlesa.create_date >= #{beginDate}
</if>
<if
test=
"endDate!=null"
>
and wlesa.create_date
<![CDATA[<=]]>
#{endDate}
</if>
...
...
@@ -115,5 +129,6 @@
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
</choose>
order by wlesa.update_date desc
</select>
</mapper>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
View file @
1cfc435d
...
...
@@ -195,9 +195,9 @@
<if
test=
"startTime!=null"
>
AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
</if>
AND e_value IS NOT NULL
ORDER BY d.create_date desc
LIMIT ${start},${length}
</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