Browse Source

装箱单面辅料报关品名同步出运明细

huxy 2 years ago
parent
commit
2c0ac484ca

+ 5 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splfi/mapper/xml/SyPackingListFabricItemMapper.xml

@@ -116,7 +116,11 @@
 	</select>
 
 	<select id="selectByMainId2" parameterType="java.lang.String" resultType="org.jeecg.modules.splfi.entity.SyPackingListFabricItem">
-		SELECT a.create_time ,a.create_by ,a.garment_Factory,b.* FROM
+		SELECT a.create_time ,a.create_by ,a.garment_Factory,(Select declaration_Name
+		from sy_declaration_elements
+		where id= (select elements_Id from sy_shipping_details_item
+		where id=b.sy_shipping_details_item_id)
+		) declaration_Name,b.* FROM
 		sy_packing_list_fabric a LEFT JOIN
 		sy_packing_list_fabric_item b ON
 		a.id=b.sy_packing_list_fabric_id and a.del_flag=0