|
|
@ -10,6 +10,7 @@
|
|
|
|
<result property="materialCode" column="material_code"/>
|
|
|
|
<result property="materialCode" column="material_code"/>
|
|
|
|
<result property="materialName" column="material_name"/>
|
|
|
|
<result property="materialName" column="material_name"/>
|
|
|
|
<result property="materialType" column="material_type"/>
|
|
|
|
<result property="materialType" column="material_type"/>
|
|
|
|
|
|
|
|
<result property="materialUnit" column="material_unit"/>
|
|
|
|
<result property="standardAmount" column="standard_amount"/>
|
|
|
|
<result property="standardAmount" column="standard_amount"/>
|
|
|
|
<result property="parentId" column="parent_id"/>
|
|
|
|
<result property="parentId" column="parent_id"/>
|
|
|
|
<result property="parentCode" column="parent_code"/>
|
|
|
|
<result property="parentCode" column="parent_code"/>
|
|
|
@ -33,10 +34,9 @@
|
|
|
|
pbi.material_code,
|
|
|
|
pbi.material_code,
|
|
|
|
bmi.material_name,
|
|
|
|
bmi.material_name,
|
|
|
|
pbi.material_type,
|
|
|
|
pbi.material_type,
|
|
|
|
|
|
|
|
bmi.material_unit,
|
|
|
|
pbi.standard_amount,
|
|
|
|
pbi.standard_amount,
|
|
|
|
pbi.parent_id,
|
|
|
|
pbi.parent_id,
|
|
|
|
pbi2.material_code parent_code,
|
|
|
|
|
|
|
|
pbi2.material_name parent_name,
|
|
|
|
|
|
|
|
bf.factory_code,
|
|
|
|
bf.factory_code,
|
|
|
|
bf.factory_name,
|
|
|
|
bf.factory_name,
|
|
|
|
pbi.sort,
|
|
|
|
pbi.sort,
|
|
|
@ -50,7 +50,6 @@
|
|
|
|
pbi.update_time
|
|
|
|
pbi.update_time
|
|
|
|
from prod_bom_info pbi
|
|
|
|
from prod_bom_info pbi
|
|
|
|
left join base_material_info bmi on bmi.material_code = pbi.material_code
|
|
|
|
left join base_material_info bmi on bmi.material_code = pbi.material_code
|
|
|
|
left join prod_bom_info pbi2 on pbi.obj_id = pbi2.parent_id
|
|
|
|
|
|
|
|
left join base_product_line bpl on bpl.product_line_code = bmi.product_line_code
|
|
|
|
left join base_product_line bpl on bpl.product_line_code = bmi.product_line_code
|
|
|
|
left join base_factory bf on bf.factory_code = bpl.plant_code
|
|
|
|
left join base_factory bf on bf.factory_code = bpl.plant_code
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|