|  | @@ -66,7 +66,7 @@ a.end_customer) as endCustomer,
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <select id="queryShippingDetails" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.SyShippingDetailsVo">
 |  |  <select id="queryShippingDetails" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.SyShippingDetailsVo">
 | 
											
												
													
														|  | -    select a.create_time as createTime,b.is_reference as isReference,a.id as id,GROUP_CONCAT(b.id) as itemIds,a.document_no as documentNo,a.document_date as documentDate,b.order_number as orderNumber,a.push_state,b.submit_status as submitStatus,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    select e.declaration_name as declarationName,e.hs_code as hsCode,e.english_product_name as englishProductName,a.create_time as createTime,b.is_reference as isReference,a.id as id,GROUP_CONCAT(b.id) as itemIds,a.document_no as documentNo,a.document_date as documentDate,b.order_number as orderNumber,a.push_state,b.submit_status as submitStatus,
 | 
											
												
													
														|  |      b.customer_abbreviation as customerAbbreviation,b.sales_department as salesDepartment,b.salesman as salesman,a.customer as customer,b.specification_and_model as specificationAndModel,
 |  |      b.customer_abbreviation as customerAbbreviation,b.sales_department as salesDepartment,b.salesman as salesman,a.customer as customer,b.specification_and_model as specificationAndModel,
 | 
											
												
													
														|  |      b.small_po as smallPo,b.pack_id as packId,b.pre_delivery_date as preDeliveryDate,b.order_date as orderDate,b.inventory_ccode as inventoryCcode,
 |  |      b.small_po as smallPo,b.pack_id as packId,b.pre_delivery_date as preDeliveryDate,b.order_date as orderDate,b.inventory_ccode as inventoryCcode,
 | 
											
												
													
														|  |      sum(b.shipment_quantity) as shipmentQuantity,b.customs_declaration_unit_price as customsDeclarationUnitPrice,round(sum(b.order_quantity),4) as orderQuantity,
 |  |      sum(b.shipment_quantity) as shipmentQuantity,b.customs_declaration_unit_price as customsDeclarationUnitPrice,round(sum(b.order_quantity),4) as orderQuantity,
 | 
											
										
											
												
													
														|  | @@ -89,13 +89,14 @@ a.end_customer) as endCustomer,
 | 
											
												
													
														|  |       from sy_shipping_details a
 |  |       from sy_shipping_details a
 | 
											
												
													
														|  |  left join sy_shipping_details_item b
 |  |  left join sy_shipping_details_item b
 | 
											
												
													
														|  |  on a.id = b.shipping_details_id and b.del_flag = 0
 |  |  on a.id = b.shipping_details_id and b.del_flag = 0
 | 
											
												
													
														|  | 
 |  | +left join sy_declaration_elements e  on b.elements_id = e.id
 | 
											
												
													
														|  |  ${ew.customSqlSegment} and  b.inventory_ccode LIKE '19%' and a.del_flag = 0
 |  |  ${ew.customSqlSegment} and  b.inventory_ccode LIKE '19%' and a.del_flag = 0
 | 
											
												
													
														|  |  GROUP BY b.group_id
 |  |  GROUP BY b.group_id
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  </select>
 |  |  </select>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <select id="queryShippingDetailsGarment" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.SyShippingDetailsVo">
 |  |      <select id="queryShippingDetailsGarment" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.SyShippingDetailsVo">
 | 
											
												
													
														|  | -    select a.create_time as createTime,b.is_reference as isReference,a.id as id,GROUP_CONCAT(b.id) as itemIds,a.document_no as documentNo,a.document_date as documentDate,b.order_number as orderNumber,a.push_state,b.submit_status as submitStatus,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    select e.declaration_name as declarationName,e.hs_code as hsCode,e.english_product_name as englishProductName,a.create_time as createTime,b.is_reference as isReference,a.id as id,GROUP_CONCAT(b.id) as itemIds,a.document_no as documentNo,a.document_date as documentDate,b.order_number as orderNumber,a.push_state,b.submit_status as submitStatus,
 | 
											
												
													
														|  |      b.customer_abbreviation as customerAbbreviation,b.sales_department as salesDepartment,b.salesman as salesman,a.customer as customer,b.specification_and_model as specificationAndModel,
 |  |      b.customer_abbreviation as customerAbbreviation,b.sales_department as salesDepartment,b.salesman as salesman,a.customer as customer,b.specification_and_model as specificationAndModel,
 | 
											
												
													
														|  |      b.small_po as smallPo,b.pack_id as packId,b.pre_delivery_date as preDeliveryDate,b.order_date as orderDate,b.inventory_ccode as inventoryCcode,
 |  |      b.small_po as smallPo,b.pack_id as packId,b.pre_delivery_date as preDeliveryDate,b.order_date as orderDate,b.inventory_ccode as inventoryCcode,
 | 
											
												
													
														|  |      sum(b.shipment_quantity) as shipmentQuantity,b.customs_declaration_unit_price as customsDeclarationUnitPrice,sum(b.order_quantity) as orderQuantity,
 |  |      sum(b.shipment_quantity) as shipmentQuantity,b.customs_declaration_unit_price as customsDeclarationUnitPrice,sum(b.order_quantity) as orderQuantity,
 | 
											
										
											
												
													
														|  | @@ -118,6 +119,7 @@ GROUP BY b.group_id
 | 
											
												
													
														|  |       from sy_shipping_details a
 |  |       from sy_shipping_details a
 | 
											
												
													
														|  |  left join sy_shipping_details_item b
 |  |  left join sy_shipping_details_item b
 | 
											
												
													
														|  |  on a.id = b.shipping_details_id and b.del_flag = 0
 |  |  on a.id = b.shipping_details_id and b.del_flag = 0
 | 
											
												
													
														|  | 
 |  | +left join sy_declaration_elements e  on b.elements_id = e.id
 | 
											
												
													
														|  |  ${ew.customSqlSegment}
 |  |  ${ew.customSqlSegment}
 | 
											
												
													
														|  |  and a.del_flag = 0  and b.inventory_ccode not LIKE '19%'
 |  |  and a.del_flag = 0  and b.inventory_ccode not LIKE '19%'
 | 
											
												
													
														|  |  GROUP BY b.group_id
 |  |  GROUP BY b.group_id
 |