...
|
...
|
@@ -125,11 +125,13 @@ func (creditAccountService *CreditAccountService) CreateCreditAccount(createCred |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
} else {
|
|
|
// 校验共创用户是否一致
|
|
|
if len(dividendsEstimates) > 0 {
|
|
|
for i, _ := range dividendsEstimates {
|
|
|
if dividendsEstimates[i].DividendsUser.UserId != dividendsEstimates[i+1].DividendsUser.UserId {
|
|
|
if dividendsEstimates[i].DividendsUser.UserId != dividendsEstimates[0].DividendsUser.UserId {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "请勾选同一个共创用户进行结算")
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 校验分红预算单是否可以进行预算
|
|
|
for _, dividendsEstimate := range dividendsEstimates {
|
...
|
...
|
|