This commit is contained in:
parent
679b5e0f18
commit
a2b3efd4b4
1 changed files with 6 additions and 3 deletions
|
|
@ -472,9 +472,12 @@ public class TradingClearingRegistryService extends QueueConsumer implements Ini
|
||||||
if (req.getMoneyAccountId() != null && !req.getMoneyAccountId().equals(tradingClearingRegistry.getMoneyAccountId())) {
|
if (req.getMoneyAccountId() != null && !req.getMoneyAccountId().equals(tradingClearingRegistry.getMoneyAccountId())) {
|
||||||
return requestHelper.makeErrorResponse(userRequest, AccountError.WrongFieldValue, "MoneyAccountId", req.getMoneyAccountId());
|
return requestHelper.makeErrorResponse(userRequest, AccountError.WrongFieldValue, "MoneyAccountId", req.getMoneyAccountId());
|
||||||
}
|
}
|
||||||
if (tradingClearingRegistry.getDepoAccountId() != null && // но можно с null заменить
|
if (tradingClearingRegistry.getDepoAccountId() != null) {
|
||||||
req.getDepoAccountId() != null && !req.getDepoAccountId().equals(tradingClearingRegistry.getDepoAccountId())) {
|
if (req.getDepoAccountId() == null) {
|
||||||
return requestHelper.makeErrorResponse(userRequest, AccountError.WrongFieldValue, "DepoAccountId", req.getDepoAccountId());
|
return requestHelper.makeErrorResponse(userRequest, AccountError.WrongFieldValue, "DepoAccountId", req.getDepoAccountId());
|
||||||
|
} else if (req.getDepoAccountId() != null && !req.getDepoAccountId().equals(tradingClearingRegistry.getDepoAccountId())) {
|
||||||
|
return requestHelper.makeErrorResponse(userRequest, AccountError.WrongFieldValue, "DepoAccountId", req.getDepoAccountId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// tradingClearingRegistry.setMoneyAccountId(req.getMoneyAccountId());
|
// tradingClearingRegistry.setMoneyAccountId(req.getMoneyAccountId());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue