Преглед на файлове

托书发票调整,报关要素回写

zengtx преди 1 година
родител
ревизия
eeee59fad8

+ 4 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/seclarationElements/mapper/SyDeclarationElementsMapper.java

@@ -25,4 +25,8 @@ public interface SyDeclarationElementsMapper extends BaseMapper<SyDeclarationEle
     public void updateFabric(@Param("newElmentId") String newElmentId, @Param("elmentId") String elmentId);
     //修改预装箱单主表的报关要素ID
     public void updateAssembledPacking(@Param("newElmentId") String newElmentId, @Param("elmentId") String elmentId);
+
+    //修改托书子表的报关要素ID
+    public void updatesyShippingOrderItem(@Param("newElmentId") String newElmentId, @Param("elmentId") String elmentId);
+
 }

+ 6 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/seclarationElements/mapper/xml/SyDeclarationElementsMapper.xml

@@ -28,4 +28,10 @@
         set elements_Id = #{newElmentId}
         where elements_Id = #{elmentId} and del_flag = '0'
     </update>
+
+    <update id="updatesyShippingOrderItem">
+        update sy_shipping_order_item
+        set elements_Id = #{newElmentId}
+        where elements_Id = #{elmentId} and del_flag = '0'
+    </update>
 </mapper>

+ 3 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/seclarationElements/service/impl/SyDeclarationElementsServiceImpl.java

@@ -182,8 +182,10 @@ public class SyDeclarationElementsServiceImpl extends ServiceImpl<SyDeclarationE
                 syDeclarationElementsMapper.updateAssembledPacking(uuid,elementid);
                 //修改装箱成衣单报关要素ID
                 syDeclarationElementsMapper.updateTailoring(uuid,elementid);
-                //修改装箱成衣单报关要素ID
+                //修改装箱单面料报关要素ID
                 syDeclarationElementsMapper.updateFabric(uuid,elementid);
+                //修改托书子表报关要素ID
+                syDeclarationElementsMapper.updatesyShippingOrderItem(uuid,elementid);
 
             }
 

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/syShippingOrder/mapper/xml/SyShippingOrderMapper.xml

@@ -230,7 +230,7 @@ group by order_number
         select a.* from sy_shipping_order_item a
         left join sy_declaration_elements b
         on a.elements_Id = b.id
-        where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by b.hs_code
+        where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by b.id order by b.hs_code desc
 
     </select>