...
|
...
|
@@ -89,7 +89,9 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do |
|
|
DividendsAmount: undertakerDividendsAmount,
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 判断业务员在当前阶段是否已经分红
|
|
|
if undertaker.Salesman.UserId != 0 {
|
|
|
salesmanEstimated, err := dividendsEstimateDao.UserEstimated(map[string]interface{}{
|
|
|
"undertakerUid": undertaker.Salesman.UserId,
|
|
|
"companyId": contract.Company.CompanyId,
|
...
|
...
|
@@ -121,7 +123,11 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do |
|
|
DividendsAmount: undertakerDividendsAmount,
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 判断关联业务员在当前阶段是否已经分红
|
|
|
if undertaker.Referrer.UserId != 0 {
|
|
|
referrerEstimated, err := dividendsEstimateDao.UserEstimated(map[string]interface{}{
|
|
|
"undertakerUid": undertaker.Referrer.UserId,
|
|
|
"companyId": contract.Company.CompanyId,
|
...
|
...
|
@@ -154,6 +160,7 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do |
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return dividendsEstimateDetails, nil
|
|
|
}
|
|
|
|
...
|
...
|
|