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