...
|
...
|
@@ -81,7 +81,7 @@ type OrderGoodBonusHasPay struct{} |
|
|
|
|
|
var _ OrderGoodBonusStatus = (*OrderGoodBonusHasPay)(nil)
|
|
|
|
|
|
func (waitPay OrderGoodBonusWaitPay) PayPartnerBonus(good *OrderGood) error {
|
|
|
func (waitPay OrderGoodBonusWaitPay) WartPayPartnerBonus(good *OrderGood) error {
|
|
|
good.GoodCompute.PartnerBonusExpense = 0
|
|
|
good.GoodCompute.PartnerBonusHas = 0
|
|
|
//初始状态为待支付时 ,合伙人未收分红等于合伙人应收分红(或者调整的)
|
...
|
...
|
@@ -93,7 +93,7 @@ func (waitPay OrderGoodBonusWaitPay) PayPartnerBonus(good *OrderGood) error { |
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (waitPay OrderGoodBonusWaitPay) WartPayPartnerBonus(good *OrderGood) error {
|
|
|
func (waitPay OrderGoodBonusWaitPay) PayPartnerBonus(good *OrderGood) error {
|
|
|
//待支付状态转支付时 ,合伙人已收收分红等于合伙人应收分红(或者调整的)
|
|
|
if good.GoodCompute.UsePartnerBonus < 0 {
|
|
|
good.GoodCompute.PartnerBonusHas = good.GoodCompute.PlanPartnerBonus
|
...
|
...
|
@@ -101,6 +101,7 @@ func (waitPay OrderGoodBonusWaitPay) WartPayPartnerBonus(good *OrderGood) error |
|
|
good.GoodCompute.PartnerBonusHas = good.GoodCompute.UsePartnerBonus
|
|
|
}
|
|
|
good.GoodCompute.PartnerBonusExpense = 0
|
|
|
good.GoodCompute.PartnerBonusNot = 0
|
|
|
return nil
|
|
|
}
|
|
|
|
...
|
...
|
|