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
b026ff27
Commit
b026ff27
authored
Jan 18, 2022
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
70943b80
d4157401
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
17 deletions
+29
-17
dbTemplate_equipment_specific.xml
...ain/resources/db/mapper/dbTemplate_equipment_specific.xml
+29
-17
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_equipment_specific.xml
View file @
b026ff27
...
@@ -166,25 +166,37 @@
...
@@ -166,25 +166,37 @@
</if>
</if>
</select>
</select>
<select
id=
"getAssoEquips"
resultType=
"com.yeejoin.amos.fas.business.vo.AssoEquipsVo"
>
<select
id=
"getAssoEquips"
resultType=
"com.yeejoin.amos.fas.business.vo.AssoEquipsVo"
>
select DISTINCT
SELECT
sto.id as equipmentId,
sto.id AS equipmentId,
spe.code as equipmentCode,
spe.code AS equipmentCode,
det.name as equipmentName ,
det.name AS equipmentName,
fqe.name as importantEquipName ,
fqe.name AS importantEquipName,
group_concat( concat( speind.equipment_index_name, '##', poin.state ) ) AS equipmentPointNames,
GROUP_CONCAT( speind.equipment_index_name, '##', poin.state ) AS equipmentPointNames,
poin.important_equipment_id as importantEquipId,
poin.important_equipment_id AS importantEquipId,
fmea_id as fmeaId
fmea_id AS fmeaId
from
FROM
f_fmea_equipment_point as poin
f_fmea_equipment_point poin
left join f_equipment as fqe on poin.important_equipment_id = fqe.id
LEFT JOIN f_equipment AS fqe ON poin.important_equipment_id = fqe.id
left join wl_equipment_specific_index as speind on poin.equipment_point_id = speind.id
LEFT JOIN wl_equipment_specific_index AS speind ON poin.equipment_point_id = speind.id
left join wl_equipment_specific as spe on speind.equipment_specific_id = spe.id
LEFT JOIN wl_equipment_specific AS spe ON speind.equipment_specific_id = spe.id
left join wl_stock_detail as sto on sto.qr_code = spe.qr_code
LEFT JOIN wl_stock_detail AS sto ON sto.qr_code = spe.qr_code
left join wl_equipment_detail as det on spe.equipment_detail_id = det.id
LEFT JOIN wl_equipment_detail AS det ON spe.equipment_detail_id = det.id
left join wl_equipment as equip on det.equipment_id = equip.id
LEFT JOIN wl_equipment_index ei ON ei.id = speind.equipment_index_id
<where>
ei.type_code = 'BREAKDOWN'
<if
test=
"fmeaId != null "
>
<if
test=
"fmeaId != null "
>
where fmea_id = #{fmeaId}
AND fmea_id = #{fmeaId}
</if>
<if
test=
"indexIds.size > 0"
>
AND ei.id IN
<foreach
collection=
"indexIds"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</if>
</where>
GROUP BY
poin.important_equipment_id,
fmeaId
limit #{pageNumber},#{pageSize}
limit #{pageNumber},#{pageSize}
</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