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