|
...
|
...
|
@@ -3,7 +3,7 @@ package domain |
|
|
|
import "errors"
|
|
|
|
|
|
|
|
//类型为(orderType=OrderTypeBestShop) 海鲜干货的订单分红
|
|
|
|
//因页面上的对于该类型的订单分红处理方式 有别于原有的其他类型(OrderReal),所以单独提取出来
|
|
|
|
//因页面上的对于该类型的订单分红状态处理方式 有别于原有的其他类型(OrderReal),所以单独提取出来
|
|
|
|
|
|
|
|
// OrderGoodWithBestshopBonusStatus 支付状态
|
|
|
|
type OrderGoodWithBestshopBonusStatus interface {
|
|
...
|
...
|
@@ -54,12 +54,16 @@ var _ OrderGoodWithBestshopBonusStatus = (*OrderGoodBonusBestshopWaitPay)(nil) |
|
|
|
|
|
|
|
func (waitPay OrderGoodBonusBestshopWaitPay) UpdateOrderGoodNumber(good *OrderGood, number int) error {
|
|
|
|
good.UseGoodNumber = number
|
|
|
|
return nil
|
|
|
|
//待支付状态计算
|
|
|
|
err := good.CurrentBonusStatus.WartPayPartnerBonus(good)
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (waitPay OrderGoodBonusBestshopWaitPay) UpdatePertnerBonusPercent(good *OrderGood, percent float64) error {
|
|
|
|
good.PartnerBonusPercent = percent
|
|
|
|
return nil
|
|
|
|
//待支付状态计算
|
|
|
|
err := good.CurrentBonusStatus.WartPayPartnerBonus(good)
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
//OrderGoodBonusBestshopHasPay 货品支付状态:已支付
|
...
|
...
|
|