作者 唐旭辉

修复 业务分红提交空支付状态的处理

@@ -105,6 +105,8 @@ func (srv BusinessBonusService) UpdateBusinessBonus(cmd command.UpdateBusinessBo @@ -105,6 +105,8 @@ func (srv BusinessBonusService) UpdateBusinessBonus(cmd command.UpdateBusinessBo
105 bonusData.BusinessBonusPayStatus.PayPartnerBonus(bonusData) 105 bonusData.BusinessBonusPayStatus.PayPartnerBonus(bonusData)
106 case domain.BUSINESS_BONUS_WAIT_PAY: 106 case domain.BUSINESS_BONUS_WAIT_PAY:
107 bonusData.BusinessBonusPayStatus.WartPayPartnerBonus(bonusData) 107 bonusData.BusinessBonusPayStatus.WartPayPartnerBonus(bonusData)
  108 + case domain.BUSINESS_BONUS_NULL_PAY:
  109 + bonusData.BusinessBonusPayStatus.NullPayPartnerBonus(bonusData)
108 default: 110 default:
109 return lib.ThrowError(lib.BUSINESS_ERROR, "支付状态错误") 111 return lib.ThrowError(lib.BUSINESS_ERROR, "支付状态错误")
110 } 112 }
@@ -11,7 +11,7 @@ const ( @@ -11,7 +11,7 @@ const (
11 // 分红状态 1:待支付分红 2:已支付分红 11 // 分红状态 1:待支付分红 2:已支付分红
12 const ( 12 const (
13 //空状态 13 //空状态
14 - BUSINESS_BONUS_NULL int8 = 0 14 + BUSINESS_BONUS_NULL_PAY int8 = 0
15 //待支付 15 //待支付
16 BUSINESS_BONUS_WAIT_PAY int8 = 1 16 BUSINESS_BONUS_WAIT_PAY int8 = 1
17 //已支付 17 //已支付