This commit is contained in:
邹宗楠
2023-05-23 15:04:55 +08:00
parent 77e7b21917
commit bb57eacecc
3 changed files with 11 additions and 9 deletions

View File

@@ -559,11 +559,6 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
} }
} }
} }
//if !model.IsWaybillPlatformOwn(bill) {
// if storeDetail, err2 := dao.GetStoreDetail(dao.GetDB(), jxutils.GetSaleStoreIDFromOrder(order), order.VendorID, ""); err2 == nil {
// s.updateBrandAccount(storeDetail, bill)
// }
//}
} }
flag2Clear := model.WaybillVendorID2Mask(bill.WaybillVendorID) flag2Clear := model.WaybillVendorID2Mask(bill.WaybillVendorID)
if order.DeliveryFlag&flag2Clear != 0 { if order.DeliveryFlag&flag2Clear != 0 {

View File

@@ -99,8 +99,8 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
CourierMobile: courierMobile, CourierMobile: courierMobile,
Status: model.OrderStatusNew, Status: model.OrderStatusNew,
VendorStatus: utils.Int2Str(model.OrderStatusNew), VendorStatus: utils.Int2Str(model.OrderStatusNew),
ActualFee: 500, ActualFee: 0,
DesiredFee: order.ActualPayPrice, DesiredFee: 0,
TipFee: 0, TipFee: 0,
DuplicatedCount: 0, DuplicatedCount: 0,
DeliveryFlag: 0, DeliveryFlag: 0,

View File

@@ -1,6 +1,8 @@
package model package model
import ( import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"time" "time"
) )
@@ -324,6 +326,11 @@ func Waybill2Status(bill *Waybill) (retVal *OrderStatus) {
StatusTime: bill.StatusTime, StatusTime: bill.StatusTime,
Remark: bill.Remark, Remark: bill.Remark,
} }
if retVal.Remark == "" {
retVal.Remark = fmt.Sprintf("运费: %s", utils.Float64ToStr(float64(bill.DesiredFee)/float64(100)))
} else {
retVal.Remark += fmt.Sprintf(",运费: %s", utils.Float64ToStr(float64(bill.DesiredFee)/float64(100)))
}
return retVal return retVal
} }