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) +}