售前删除
This commit is contained in:
@@ -1792,7 +1792,10 @@ func AdjustJdsOrderSimple(ctx *jxcontext.Context, vendorOrderID string, skuID in
|
|||||||
} else {
|
} else {
|
||||||
_, err = dao.DeleteEntity(db, orderSku)
|
_, 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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user