售前删除

This commit is contained in:
苏尹岚
2020-11-02 09:41:07 +08:00
parent 8c42f34725
commit b69f6701dc

View File

@@ -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
}