|  | @@ -13,7 +13,9 @@
 | 
	
		
			
				|  |  |  /*        sy_shipping_details.chinese_Name AS productName,中文品名-->品名
 | 
	
		
			
				|  |  |          sy_shipping_details.english_product_name,英文品名*/
 | 
	
		
			
				|  |  |          sy_shipping_details.customer AS customer, /*客户 customer */
 | 
	
		
			
				|  |  | -        sy_order_data.customer_Abbreviation AS customerAbbreviation, /*客户简称 customer */
 | 
	
		
			
				|  |  | +        /* sy_order_data.customer_Abbreviation AS customerAbbreviation,客户简称 customer */
 | 
	
		
			
				|  |  | +        (SELECT sy_shipping_details_item.`customer_Abbreviation` FROM sy_shipping_details_item
 | 
	
		
			
				|  |  | +        WHERE shipping_details_id=sy_shipping_details.id LIMIT 1) customer_Abbreviation,/*客户简称*/
 | 
	
		
			
				|  |  |          sy_order_data.customer_Code AS customerCode, /*客户编码 customer */
 | 
	
		
			
				|  |  |          sy_order_data.business_Type_Value,/*业务类型*/
 | 
	
		
			
				|  |  |          sy_order_data.salesman,/*业务员*/
 | 
	
	
		
			
				|  | @@ -23,6 +25,8 @@
 | 
	
		
			
				|  |  |          sy_shipping_details.order_Type AS  orderType, /*订单类型 m*/
 | 
	
		
			
				|  |  |          (SELECT sy_shipping_details_item.`pur_or_sub_order` FROM sy_shipping_details_item
 | 
	
		
			
				|  |  |          WHERE shipping_details_id=sy_shipping_details.id LIMIT 1) spur_Or_Sub_Order,/*采购/委外订单号*/
 | 
	
		
			
				|  |  | +        (SELECT sy_shipping_details_item.`ompo_Id` FROM sy_shipping_details_item
 | 
	
		
			
				|  |  | +        WHERE shipping_details_id=sy_shipping_details.id LIMIT 1) ompo_Id,/*采购/委外订单id*/
 | 
	
		
			
				|  |  |          (SELECT sy_shipping_details_item.`elements_id` FROM sy_shipping_details_item
 | 
	
		
			
				|  |  |          WHERE shipping_details_id=sy_shipping_details.id LIMIT 1) elements_id /*申报要素ID*/
 | 
	
		
			
				|  |  |      FROM sy_shipping_details
 | 
	
	
		
			
				|  | @@ -39,8 +43,8 @@
 | 
	
		
			
				|  |  |          a.document_No,/*单据号*/
 | 
	
		
			
				|  |  |          a.order_number,/*订单号*/
 | 
	
		
			
				|  |  |          a.item_number, /*款号*/
 | 
	
		
			
				|  |  | -	    (SELECT english_product_name FROM  sy_declaration_elements WHERE id=a.elements_id) productName,/*中文品名*/
 | 
	
		
			
				|  |  | -	    (SELECT declaration_name FROM  sy_declaration_elements WHERE id=a.elements_id) english_product_name,/*英文品名*/
 | 
	
		
			
				|  |  | +	    (SELECT english_product_name FROM  sy_declaration_elements WHERE id=a.elements_id) english_product_name ,/*中文品名*/
 | 
	
		
			
				|  |  | +	    (SELECT declaration_name FROM  sy_declaration_elements WHERE id=a.elements_id) productName,/*英文品名*/
 | 
	
		
			
				|  |  |          a.size_range,/*尺码范围*/
 | 
	
		
			
				|  |  |          a.customer,/*客户名称*/
 | 
	
		
			
				|  |  |          a.container_code,/*集装箱号*/
 | 
	
	
		
			
				|  | @@ -85,7 +89,7 @@
 | 
	
		
			
				|  |  |      SELECT
 | 
	
		
			
				|  |  |          document_No AS packingHeaderNum/*单据号*/,
 | 
	
		
			
				|  |  |          spur_Or_Sub_Order AS poNo,/*委外/采购订单号*/
 | 
	
		
			
				|  |  | -        sy_order_data_id AS attributeBigint1,/*采购/委外订单号对应的ID(唯一标识)*/
 | 
	
		
			
				|  |  | +        ompo_Id AS attributeBigint1,/*采购/委外订单号对应的ID(唯一标识)*/
 | 
	
		
			
				|  |  |          'CLOTHING' AS packingType /*计划装箱单类型*/,
 | 
	
		
			
				|  |  |          'NEW' AS packingStatus /*计划装箱单头状态*/,
 | 
	
		
			
				|  |  |          size_Range  AS size_Range,/*尺寸范围*/
 | 
	
	
		
			
				|  | @@ -102,7 +106,7 @@
 | 
	
		
			
				|  |  |          SELECT
 | 
	
		
			
				|  |  |          document_No AS packingHeaderNum/*单据号*/,
 | 
	
		
			
				|  |  |          spur_Or_Sub_Order AS poNo,/*委外/采购订单号*/
 | 
	
		
			
				|  |  | -        sy_order_data_id AS attributeBigint1,/*采购/委外订单号对应的ID(唯一标识)*/
 | 
	
		
			
				|  |  | +        ompo_Id AS attributeBigint1,/*采购/委外订单号对应的ID(唯一标识)*/
 | 
	
		
			
				|  |  |          'CLOTHING' AS packingType /*计划装箱单类型*/,
 | 
	
		
			
				|  |  |          'NEW' AS packingStatus /*计划装箱单头状态*/,
 | 
	
		
			
				|  |  |          size_Range  AS size_Range,/*尺寸范围*/
 |