修改
This commit is contained in:
@@ -51,8 +51,6 @@
|
|||||||
attr.sect_code,
|
attr.sect_code,
|
||||||
attr.sect_name,
|
attr.sect_name,
|
||||||
attr.stor_name,
|
attr.stor_name,
|
||||||
point.point_code,
|
|
||||||
point.point_name,
|
|
||||||
mater.material_code,
|
mater.material_code,
|
||||||
mater.material_name,
|
mater.material_name,
|
||||||
unit.unit_name,
|
unit.unit_name,
|
||||||
@@ -60,12 +58,11 @@
|
|||||||
sub.sap_pcsn
|
sub.sap_pcsn
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_StructIvt ivt
|
ST_IVT_StructIvt ivt
|
||||||
LEFT JOIN sch_base_point point ON ivt.struct_id = point.source_id
|
|
||||||
LEFT JOIN st_ivt_structattr attr ON ivt.struct_id = attr.struct_id
|
LEFT JOIN st_ivt_structattr attr ON ivt.struct_id = attr.struct_id
|
||||||
LEFT JOIN md_me_materialbase mater ON mater.material_id = ivt.material_id
|
LEFT JOIN md_me_materialbase mater ON mater.material_id = ivt.material_id
|
||||||
LEFT JOIN md_pb_measureunit unit ON unit.measure_unit_id = ivt.qty_unit_id
|
LEFT JOIN md_pb_measureunit unit ON unit.measure_unit_id = ivt.qty_unit_id
|
||||||
LEFT JOIN SCH_BASE_Region region ON region.region_id = ivt.region_id
|
LEFT JOIN SCH_BASE_Region region ON region.region_id = ivt.region_id
|
||||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = ivt.pcsn
|
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = ivt.pcsn AND attr.storagevehicle_code = sub.package_box_sn
|
||||||
WHERE
|
WHERE
|
||||||
1 = 1
|
1 = 1
|
||||||
|
|
||||||
|
|||||||
@@ -59,11 +59,13 @@
|
|||||||
sub.thickness,
|
sub.thickness,
|
||||||
sub.net_weight AS netweight,
|
sub.net_weight AS netweight,
|
||||||
sub.length,
|
sub.length,
|
||||||
'AC01' AS warehouse_code,
|
stor.ext_id AS warehouse_code,
|
||||||
sub.date_of_production AS dateofproduction,
|
sub.date_of_production AS dateofproduction,
|
||||||
sub.un_plan_product_property1 AS unplanproductproperty
|
CONCAT(sub.un_plan_product_property1,sub.un_plan_product_property2,sub.un_plan_product_property3) AS unplanproductproperty
|
||||||
FROM
|
FROM
|
||||||
pdm_bi_subpackagerelation sub
|
pdm_bi_subpackagerelation sub
|
||||||
|
INNER JOIN st_ivt_structattr sa On sa.storagevehicle_code = sub.package_box_sn
|
||||||
|
INNER JOIN st_ivt_bsrealstorattr stor ON stor.stor_id = sa.stor_id
|
||||||
WHERE
|
WHERE
|
||||||
sub.`status` = '2'
|
sub.`status` = '2'
|
||||||
OPTION 输入.material_code <> ""
|
OPTION 输入.material_code <> ""
|
||||||
|
|||||||
Reference in New Issue
Block a user