This commit is contained in:
苏尹岚
2020-12-28 08:46:28 +08:00
parent a3f06b2e7f
commit 33ac4db9ba

View File

@@ -1229,7 +1229,7 @@ func CheckJdDeliveryWeight(ctx *jxcontext.Context) (err error) {
return retVal, err
}
if waybill.DeliveryID == deliveryOrder.VendorWaybillID {
deliveryOrder.IsWeight = 1
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 {
@@ -1238,7 +1238,7 @@ func CheckJdDeliveryWeight(ctx *jxcontext.Context) (err error) {
if err = financial.AddExpendUpdateAccount(db, userBill, model.BillTypeJdWaybillOverWeight, utils.Float64TwoInt(diffPrice), 2); err != nil {
return retVal, err
}
deliveryOrder.IsWeight = 2
deliveryOrder.IsWeight = 2 //超重
}
}
deliveryOrder.ActualWeight = waybill.Weight