From 76284f0550a9dd514161005c6b2c72d1e0c87ae9 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 21 Apr 2025 14:52:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(shipment):=20=E6=B7=BB=E5=8A=A0=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=95=86=E5=93=81=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=88=A0=E9=99=A4=E5=87=BA=E8=BF=90=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD-=20=E5=9C=A8=20ArgsSaleProductDelete=20?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93=E4=B8=AD=E5=B0=86=20ShipmentSalePro?= =?UTF-8?q?ductIds=20=E7=9A=84=E6=B3=A8=E9=87=8A=E4=BB=8E"=E5=87=BA?= =?UTF-8?q?=E8=BF=90=E5=8F=82=E8=AF=84id"=E4=BF=AE=E6=94=B9=E4=B8=BA"?= =?UTF-8?q?=E5=87=BA=E8=BF=90=E4=BA=A7=E5=93=81id"=20-=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20ArgsSaleProductSync=20=E7=BB=93=E6=9E=84=E4=BD=93?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=90=8C=E6=AD=A5=E5=95=86=E5=93=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20-=20=E5=AE=9E=E7=8E=B0=20Sync=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E5=90=8C=E6=AD=A5=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/shipment/saleProduct.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/erp/shipment/saleProduct.go b/erp/shipment/saleProduct.go index 1c86d7e..5b0d43c 100644 --- a/erp/shipment/saleProduct.go +++ b/erp/shipment/saleProduct.go @@ -237,7 +237,7 @@ func (s *saleProduct) Edit(ctx context.Context, args ArgsSaleProductEdit) (err e type ArgsSaleProductDelete struct { ShipmentId int64 // 订舱单id - ShipmentSaleProductIds []int64 // 出运参评id + ShipmentSaleProductIds []int64 // 出运产品id } // Delete @TITLE 删除出运产品 @@ -249,3 +249,18 @@ func (s *saleProduct) Delete(ctx context.Context, args ArgsSaleProductDelete) (e reply := 0 return xClient.Call(ctx, "Delete", args, &reply) } + +type ArgsSaleProductSync struct { + ShipmentId int64 // 订舱单id + ShipmentSaleProductIds []int64 // 出运产品id +} + +// Sync @TITLE 同步商品 +func (s *saleProduct) Sync(ctx context.Context, args ArgsSaleProductSync) (err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + reply := 0 + return xClient.Call(ctx, "Sync", args, &reply) +}