正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -63,8 +63,8 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do | @@ -63,8 +63,8 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do | ||
63 | if undertakerEstimated { | 63 | if undertakerEstimated { |
64 | return nil, fmt.Errorf("用户 " + undertaker.UserName + " 已分红") | 64 | return nil, fmt.Errorf("用户 " + undertaker.UserName + " 已分红") |
65 | } else { | 65 | } else { |
66 | - undertakerDividendsAmount, _ := decimal.NewFromFloat(moneyIncentivesRuleMatched.MoneyIncentivesAmount). | ||
67 | - Mul(decimal.NewFromFloat(1).Sub(decimal.NewFromFloat(moneyIncentivesRuleMatched.SalesmanPercentage).Add(decimal.NewFromFloat(moneyIncentivesRuleMatched.ReferrerPercentage)).Div(decimal.NewFromFloat(100)))).Float64() | 66 | + undertakerDividendsAmount, _ := decimal.NewFromFloat(moneyIncentivesRuleMatched.MoneyIncentivesAmount).Float64() |
67 | + //Mul(decimal.NewFromFloat(1).Sub(decimal.NewFromFloat(moneyIncentivesRuleMatched.SalesmanPercentage).Add(decimal.NewFromFloat(moneyIncentivesRuleMatched.ReferrerPercentage)).Div(decimal.NewFromFloat(100)))).Float64() | ||
68 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ | 68 | dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ |
69 | DividendsUser: &domain.User{ | 69 | DividendsUser: &domain.User{ |
70 | UserId: undertaker.UserId, | 70 | UserId: undertaker.UserId, |
-
请 注册 或 登录 后发表评论