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