退料申请只显示领料的机具类型层级
This commit is contained in:
parent
04256b9154
commit
5cee802676
|
|
@ -726,21 +726,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="getUseTypeTreeL21" resultType="com.bonus.sgzb.material.domain.TypeTreeNode">
|
||||
SELECT
|
||||
mt3.type_id,
|
||||
mt3.type_name,
|
||||
mt3.parent_id,
|
||||
mt3.unit_name,
|
||||
mt3.company_id,
|
||||
mt2.type_id,
|
||||
mt2.type_name,
|
||||
mt2.parent_id,
|
||||
mt2.unit_name,
|
||||
mt2.company_id,
|
||||
0 AS num,
|
||||
mt3.LEVEL
|
||||
mt2.LEVEL
|
||||
FROM
|
||||
ma_type mt3 where type_id in
|
||||
ma_type mt2 where type_id in
|
||||
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
union
|
||||
|
||||
SELECT
|
||||
mt1.type_id,
|
||||
mt1.type_name,
|
||||
mt1.parent_id,
|
||||
mt1.unit_name,
|
||||
mt1.company_id,
|
||||
0 AS num,
|
||||
mt1.LEVEL
|
||||
FROM
|
||||
ma_type mt1 left join (
|
||||
SELECT
|
||||
mt2.type_id,
|
||||
mt2.type_name,
|
||||
|
|
@ -750,17 +760,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
0 AS num,
|
||||
mt2.LEVEL
|
||||
FROM
|
||||
ma_type mt2 left join (
|
||||
SELECT
|
||||
mt3.type_id,
|
||||
mt3.type_name,
|
||||
mt3.parent_id,
|
||||
mt3.unit_name,
|
||||
mt3.company_id,
|
||||
0 AS num,
|
||||
mt3.LEVEL
|
||||
FROM
|
||||
ma_type mt3) mt3 on mt3.parent_id=mt2.type_id where mt3.type_id in
|
||||
ma_type mt2) mt2 on mt2.parent_id=mt1.type_id where mt2.type_id in
|
||||
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
|
|
|||
Loading…
Reference in New Issue