From 5088f2945664b755122c3f683eec15413b675531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 28 Oct 2020 17:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E7=89=A9=E6=B5=81=E8=B6=85?= =?UTF-8?q?=E9=87=8D=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 0d89a07cc..6acffa2fb 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -710,6 +710,7 @@ func CheckJdDeliveryWeight(ctx *jxcontext.Context) (err error) { return retVal, err } if waybill.DeliveryID == deliveryOrder.VendorWaybillID { + deliveryOrder.IsWeight = 1 if waybill.Weight > 3 && math.Floor(deliveryOrder.Weight) < math.Floor(waybill.Weight) { diffPrice := (math.Floor(waybill.Weight) - math.Floor(deliveryOrder.Weight)) * waybillKgPrice if err != nil { @@ -718,8 +719,10 @@ func CheckJdDeliveryWeight(ctx *jxcontext.Context) (err error) { if err = financial.AddExpendUpdateAccount(db, userBill, model.BillTypeJdWaybillOverWeight, utils.Float64TwoInt(diffPrice)); err != nil { return retVal, err } + deliveryOrder.IsWeight = 2 } } + dao.UpdateEntity(db, deliveryOrder, "IsWeight") return retVal, err }, deliveryOrders) tasksch.HandleTask(task, nil, true).Run()