|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
<resultMap type="BomComponent" id="BomComponentResult">
|
|
|
|
|
<result property="handle" column="handle" />
|
|
|
|
|
<result property="bomCode" column="bom_code" />
|
|
|
|
|
<result property="bomName" column="product_desc_zh" />
|
|
|
|
|
<result property="productDescZh" column="product_desc_zh" />
|
|
|
|
|
<result property="site" column="site" />
|
|
|
|
|
<result property="productCode" column="product_code" />
|
|
|
|
|
<result property="cumc" column="cumc" />
|
|
|
|
@ -305,17 +305,16 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseBomComponentList" parameterType="BomComponent" resultMap="BomComponentResult">
|
|
|
|
|
-- select bbc.bom_code,bpc1.product_desc_zh
|
|
|
|
|
-- from base_bom_component bbc,base_product_copy1 bpc1
|
|
|
|
|
-- left join base_product_copy1 bpc1 on bbc.product_code = (right(bpc1.product_code,11))
|
|
|
|
|
-- Where
|
|
|
|
|
<!-- <if test="bomCode != null and bomCode != ''"> and bom_code = #{bomCode}</if>-->
|
|
|
|
|
-- bbc.product_code = right(bpc1.product_code,11)
|
|
|
|
|
select distinct bbc.bom_code,bp.product_desc_zh,right(bp.product_code,11) as pc,bbc.product_code
|
|
|
|
|
from base_bom_component bbc,base_product bp
|
|
|
|
|
Where
|
|
|
|
|
bbc.product_code = right(bp.product_code,11)
|
|
|
|
|
<if test="bomCode != null and bomCode != ''"> and bom_code = #{bomCode}</if>
|
|
|
|
|
<!--select distinct bbc.bom_code,bp.product_desc_zh,right(bp.product_code,11) as pc,bbc.product_code-->
|
|
|
|
|
select bbc.bom_code,b1.product_desc_zh,bbc.product_code,bbc.component,bp.product_desc_zh as componentName
|
|
|
|
|
from base_bom_component bbc
|
|
|
|
|
left join base_product b1 on right(b1.product_code,11) = bbc.product_code
|
|
|
|
|
left join base_product bp on right(bp.product_code,11) = bbc.component
|
|
|
|
|
<where>
|
|
|
|
|
<if test="bomCode != null and bomCode != ''"> and bom_code like concat('%', #{bomCode}, '%')</if>
|
|
|
|
|
<if test="productDescZh != null and productDescZh != ''"> and b1.product_desc_zh like concat('%', #{productDescZh}, '%')</if>
|
|
|
|
|
<!-- <if test="component != null and component != ''"> and component like concat('%', #{component}, '%')</if>-->
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getWorkCenterList" parameterType="SysFactory" resultMap="SysFactoryResult">
|
|
|
|
|