|
|
|
@ -110,32 +110,25 @@ |
|
|
|
a.notify_status,a.remark,a.createDate,a.createBy,a.cmc_invoice,a.updateDate,a.updateBy,dbo.get_bu_desc(a.site,a.bu_no) as buDesc |
|
|
|
,a.overseasShipper,a.overseasAddress,a.cnative,a.localShipAddress |
|
|
|
from ecss_CoDelNotifyHeader a |
|
|
|
|
|
|
|
where a.site = #{site} |
|
|
|
|
|
|
|
AND a.delNo = #{delNo} |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="searchEcssCoDelNotifyDetail" resultType="EcssCoDelNotifyDetailData"> |
|
|
|
select a.site,a.bu_no,a.delNo,a.item_no,a.salesOrder,a.salesOrder_item_no,a.customerPO,a.line,a.version,a.status,a.family, |
|
|
|
a.part_no,a.part_description,a.qty,a.lt,a.cmc_comment,a.saleType,a.awb_bl,a.shipping_number,a.forwarder_info, |
|
|
|
a.currency,a.tp,a.ttl_amount,a.sum_price,a.so,a.upc,a.remark,a.erp_delItemNo,a.pn,CONVERT(DECIMAL(20, 0),a.nocartons) as nocartons, |
|
|
|
c.num_value as boxrolls,d.num_value as rollqty,#{cmcInvoice} as cmcInvoice,a.modifyFlag |
|
|
|
c.num_value as boxrolls,d.num_value as rollqty,w.num_value as boxweight,#{cmcInvoice} as cmcInvoice,a.modifyFlag |
|
|
|
from ecss_CoDelNotifydetail a |
|
|
|
left join part_sub_properties_value c on a.part_no=c.part_no and c.site=a.site and c.bu_no=a.bu_no |
|
|
|
and c.record_type='ECSSPART' and c.code_no='BG001' and c.properties_item_no='BOXROLLS' |
|
|
|
left join part_sub_properties_value d on a.part_no=d.part_no and d.site=a.site and d.bu_no=a.bu_no |
|
|
|
and d.record_type='ECSSPART' and d.code_no='BG001' and d.properties_item_no='ROLLQTY' |
|
|
|
|
|
|
|
left join part_sub_properties_value w on a.part_no=w.part_no and w.site=a.site and w.bu_no=a.bu_no |
|
|
|
and w.record_type='ECSSPART' and w.code_no='BG001' and w.properties_item_no='BOXWEIGHT' |
|
|
|
<where> |
|
|
|
|
|
|
|
|
|
|
|
And a.site = #{site} |
|
|
|
|
|
|
|
AND a.delNo = #{delNo} |
|
|
|
|
|
|
|
|
|
|
|
</where> |
|
|
|
order by a.item_no |
|
|
|
</select> |
|
|
|
|