account-service http://jira.mfd.msk:8088/browse/CLS-271 ТКР, часть, остальное см. company-service что присылает.
This commit is contained in:
parent
f5acd1e0e5
commit
40c2bdc64a
1 changed files with 2 additions and 10 deletions
|
|
@ -356,20 +356,12 @@ public class TradingClearingRegistryService extends QueueConsumer implements Ini
|
|||
TradingClearingRegistryUpdateRequest req = userRequest.getRequestPayload();
|
||||
TradingClearingRegistry tradingClearingRegistry = tradingClearingRegistryImdg.getSingleObjectByID(req.getId());
|
||||
|
||||
// // Дополнительная проверка
|
||||
// if (req.getMoneyAccountId() == null && (req.getMoneyAccountId() == null || req.getDepoAccountId() == null)) {
|
||||
// TradingClearingRegistry registryByCompany = tradingClearingRegistryImdg.getSingleObjectByFieldValues(Map.of("companyId", tradingClearingRegistry.getCompanyId()));
|
||||
// if (registryByCompany == null) { // never
|
||||
// return requestHelper.makeErrorResponse(userRequest,
|
||||
// AccountError.TradingClearingRegistryNotFound,
|
||||
// "companyId=" + req.getCompanyId());
|
||||
// }
|
||||
// }
|
||||
|
||||
if (req.getStatus() != null) tradingClearingRegistry.setStatus(req.getStatus());
|
||||
|
||||
Instant now = Instant.now();
|
||||
tradingClearingRegistry.setUpdated(now);
|
||||
tradingClearingRegistry.setMoneyAccountId(req.getMoneyAccountId());
|
||||
tradingClearingRegistry.setDepoAccountId(req.getDepoAccountId());
|
||||
|
||||
tradingClearingRegistryImdg.update(tradingClearingRegistry);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue