Merge remote-tracking branch 'origin/jdshop' into jxact
This commit is contained in:
@@ -1297,8 +1297,12 @@ func RefreshJdShopOrdersEarningPrice(ctx *jxcontext.Context, orderStartTime, ord
|
||||
order := &model.GoodsOrder{}
|
||||
order.VendorOrderID = utils.Int64ToStr(v.OrderID)
|
||||
dao.GetEntity(db, order, "VendorOrderID")
|
||||
storeDeatil, _ := dao.GetStoreDetail(db, jxutils.GetSaleStoreIDFromOrder(order), order.VendorID)
|
||||
order.TotalShopMoney = utils.Float64TwoInt64(v.DueAmount * 100)
|
||||
dao.UpdateEntity(db, order, "TotalShopMoney")
|
||||
if order.NewEarningPrice == 0 {
|
||||
jxutils.RefreshOrderEarningPrice2(order, storeDeatil.PayPercentage)
|
||||
}
|
||||
dao.UpdateEntity(db, order, "TotalShopMoney", "NewEarningPrice")
|
||||
}
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user