| 
					
				 | 
			
			
				@@ -3,10 +3,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <mapper namespace="org.jeecg.modules.spapl.mapper.SyPreAssembledPackingListMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectSyShippingDetailsData" parameterType="java.lang.String" resultType="org.jeecg.modules.spapl.entity.SyPreAssembledPackingList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /*获取发运明细数据*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT t.*, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 (SELECT english_product_name FROM  sy_declaration_elements WHERE id=t.elements_id) productName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	 (SELECT declaration_name FROM  sy_declaration_elements WHERE id=t.elements_id) english_product_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    FROM ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sy_shipping_details.id AS syDeclarationElementsId, /*发运明细主表id*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sy_order_data.id AS sy_order_data_id, /*订单数据主表id*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sy_shipping_details.chinese_Name AS productName,/*中文品名-->品名*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/*        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_Code AS customerCode, /*客户编码 customer */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -17,12 +22,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sy_order_data.garment_Factory AS garmentFactory, /*成衣工厂 garmentFactory m*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         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/*采购/委外订单号*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WHERE shipping_details_id=sy_shipping_details.id LIMIT 1) spur_Or_Sub_Order,/*采购/委外订单号*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (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 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     LEFT JOIN sy_order_data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ON sy_shipping_details.`sy_order_data_id`=sy_order_data.`id` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     WHERE sy_shipping_details.del_flag = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    AND sy_shipping_details.id=#{value} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    AND sy_shipping_details.id=#{value} ) t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectPage" resultType="org.jeecg.modules.spapl.vo.SyPreAssembledPackingListVo"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,7 +39,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.document_No,/*单据号*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.order_number,/*订单号*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.item_number, /*款号*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a.product_name,/*品名*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (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,/*英文品名*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.size_range,/*尺码范围*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.customer,/*客户名称*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         a.container_code,/*集装箱号*/ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -104,9 +112,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         create_By AS preparer/*创建人*/, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         create_Time AS preparationTime/*创建时间*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FROM `sy_pre_assembled_packing_list` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        where id in <foreach collection="list" item="value" index="index" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 #{value} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach collection="list" item="value" index="index" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             #{value} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |