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
b8b7a750
Commit
b8b7a750
authored
Dec 18, 2020
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of 172.16.10.76:station/YeeAmosFireAutoSysRoot into upgrade
parents
9248e0f9
f2c24806
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-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
+1
-1
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_alarm.xml
View file @
b8b7a750
...
@@ -79,6 +79,10 @@
...
@@ -79,6 +79,10 @@
<select
id=
"getAlarmSingleMapperPage"
resultType=
"java.util.HashMap"
>
<select
id=
"getAlarmSingleMapperPage"
resultType=
"java.util.HashMap"
>
SELECT
SELECT
d.*
FROM
(
SELECT
wlesa.id,
wlesa.id,
wlesa.equipment_specific_id as fireEquipmentId,
wlesa.equipment_specific_id as fireEquipmentId,
wles.code as fireEquipmentCode,
wles.code as fireEquipmentCode,
...
@@ -99,18 +103,29 @@
...
@@ -99,18 +103,29 @@
WHEN 'FIREALARM' THEN '火灾报警'
WHEN 'FIREALARM' THEN '火灾报警'
WHEN 'BREAKDOWN' THEN '故障告警' ELSE wlesa.type
WHEN 'BREAKDOWN' THEN '故障告警' ELSE wlesa.type
END AS type,
END AS type,
wlesa.
cre
ate_date as createDate,
wlesa.
upd
ate_date as createDate,
wlesa.recovery_date as recoveryDate,
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
FROM wl_equipment_specific_alarm wlesa
left join wl_equipment_specific wles on wlesa.equipment_specific_id = wles.id
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_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_warehouse_structure wws on wlsd.warehouse_structure_id = wws.id
left join wl_equipment_detail wled on wles.equipment_detail_id = wled.id
left join wl_equipment_detail wled on wles.equipment_detail_id = wled.id
WHERE wled.`name` is not null
) d
<if
test=
"protectObj !=null and protectObj != '' "
>
and wled.`name` like concat(concat("%",#{protectObj}),"%")
</if>
WHERE 1=1
<if
test=
"beginDate!=null"
>
and wlesa.create_date >= #{beginDate}
</if>
AND d.fireEquipmentName IS NOT NULL
<if
test=
"endDate!=null"
>
and wlesa.create_date
<![CDATA[<=]]>
#{endDate}
</if>
<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>
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
View file @
b8b7a750
...
@@ -195,9 +195,9 @@
...
@@ -195,9 +195,9 @@
<if
test=
"startTime!=null"
>
<if
test=
"startTime!=null"
>
AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
</if>
</if>
AND e_value IS NOT NULL
ORDER BY d.create_date desc
ORDER BY d.create_date desc
LIMIT ${start},${length}
LIMIT ${start},${length}
</select>
</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