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
3d75e7c6
Commit
3d75e7c6
authored
Dec 18, 2020
by
吴俊凯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of
http://172.16.10.76/station/YeeAmosFireAutoSysRoot
into dev_upgrade
parents
9248e0f9
0fa7894d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
dbTemplate_alarm.xml
...ysStart/src/main/resources/db/mapper/dbTemplate_alarm.xml
+21
-6
dbTemplate_fire_equip.xml
...rt/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
+2
-1
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_alarm.xml
View file @
3d75e7c6
...
...
@@ -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,18 +103,29 @@
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
<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>
) d
WHERE 1=1
AND d.fireEquipmentName IS NOT NULL
<if
test=
"protectObj !=null and protectObj != '' "
>
and d.fireEquipmentName like concat(concat("%",#{protectObj}),"%")
</if>
<if
test=
"beginDate!=null"
>
and d.createDate >= #{beginDate}
</if>
<if
test=
"endDate!=null"
>
and d.createDate
<![CDATA[<=]]>
#{endDate}
</if>
order by d.createDate desc
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
View file @
3d75e7c6
...
...
@@ -136,6 +136,7 @@
wl_equipment_specific_index ind
left join wl_equipment_specific as spe on spe.id = ind.equipment_specific_id
left join wl_equipment_detail as det on spe.equipment_detail_id = det.id
WHERE 1=1 AND ind.value IS NOT NULL
) d
WHERE
1 = 1
...
...
@@ -195,9 +196,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