售前删除
This commit is contained in:
@@ -1792,7 +1792,10 @@ func AdjustJdsOrderSimple(ctx *jxcontext.Context, vendorOrderID string, skuID in
|
||||
} else {
|
||||
_, err = dao.DeleteEntity(db, orderSku)
|
||||
}
|
||||
|
||||
order.AdjustCount++
|
||||
order.ActualPayPrice = order.ActualPayPrice - orderSku.SalePrice
|
||||
order.TotalShopMoney = int64(float64(order.ActualPayPrice) * jdshopapi.JdsPayPercentage)
|
||||
dao.UpdateEntity(db, order, "AdjustCount", "TotalShopMoney")
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user