From b36c4c701eedb3934f09e8f355158330975acfe5 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 29 Dec 2022 16:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/batch/goods.go | 1 + supplier/batch/order.go | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 supplier/batch/order.go diff --git a/supplier/batch/goods.go b/supplier/batch/goods.go index 9c38df0..815a134 100644 --- a/supplier/batch/goods.go +++ b/supplier/batch/goods.go @@ -9,6 +9,7 @@ import ( type Goods struct { goods + Order order } type goods struct { diff --git a/supplier/batch/order.go b/supplier/batch/order.go new file mode 100644 index 0000000..3fb9f40 --- /dev/null +++ b/supplier/batch/order.go @@ -0,0 +1,27 @@ +package batch + +import ( + "git.oa00.com/supply-chain/service/client" + "github.com/shopspring/decimal" + "golang.org/x/net/context" +) + +type order struct { +} + +type ArgsOrderFreightFee struct { + OrderSn string + FreightFee decimal.Decimal + FreightFile string +} + +// FreightFee @Title 运费处理 +func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) (err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "FreightFee", args, &reply) + return +}