http://jira.mfd.msk:8088/browse/CLS-293 meta 4: доделал опечатку в TradingClearingRegistry
This commit is contained in:
parent
e13968a148
commit
39b476b917
10 changed files with 24 additions and 25 deletions
|
|
@ -130,7 +130,7 @@ public class TradingClearingRegistryService extends QueueConsumer implements Ini
|
|||
tradingClearingRegistry.setId(id);
|
||||
tradingClearingRegistry.setCompanyId(req.getCompanyId());
|
||||
tradingClearingRegistry.setMoneyAccountId(req.getMoneyAccountId());
|
||||
tradingClearingRegistry.setDepoAaccountId(req.getDepoAccountId());
|
||||
tradingClearingRegistry.setDepoAccountId(req.getDepoAccountId());
|
||||
|
||||
DepoAccount depoAccount = req.getDepoAccountId() != null ? depoAccountImdg.getSingleObjectByID(req.getDepoAccountId()) : null;
|
||||
Account depoAccountMain = depoAccount != null ? accountImdg.getSingleObjectByID(depoAccount.getAccountId()) : null;
|
||||
|
|
@ -277,7 +277,7 @@ public class TradingClearingRegistryService extends QueueConsumer implements Ini
|
|||
tradingClearingRegistry.setId(id);
|
||||
tradingClearingRegistry.setCompanyId(req.getCompanyId());
|
||||
tradingClearingRegistry.setMoneyAccountId(req.getMoneyAccountId());
|
||||
tradingClearingRegistry.setDepoAaccountId(req.getDepoAccountId());
|
||||
tradingClearingRegistry.setDepoAccountId(req.getDepoAccountId());
|
||||
|
||||
DepoAccount depoAccount = req.getDepoAccountId() != null ? depoAccountImdg.getSingleObjectByID(req.getDepoAccountId()) : null;
|
||||
ClearingAccount clearingAccount = clearingAccountImdg.getSingleObjectByID(req.getMoneyAccountId());
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ class TradingClearingRegistryServiceTest {
|
|||
predictableTradingClearingRegistry.setCompanyId(companyId);
|
||||
predictableTradingClearingRegistry.setCode("0077CDAT");
|
||||
predictableTradingClearingRegistry.setMoneyAccountId(clearingAccountId);
|
||||
predictableTradingClearingRegistry.setDepoAaccountId(depoAccountId);
|
||||
predictableTradingClearingRegistry.setDepoAccountId(depoAccountId);
|
||||
predictableTradingClearingRegistry.setTradingClearingRegistryType("DAT");
|
||||
predictableTradingClearingRegistry.setTradingClearingRegistryPurpose(TradingClearingRegistryPurpose.C.getKey());
|
||||
predictableTradingClearingRegistry.setStatus(ServiceStatus.Active.getKey());
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class TradingClearingRegistryBackendGetById extends BasicSpcexResponse {
|
|||
payload.setCompanyId(tcr.getCompanyId());
|
||||
payload.setCode(tcr.getCode());
|
||||
payload.setMoneyAccountId(tcr.getMoneyAccountId());
|
||||
payload.setDepoAaccountId(tcr.getDepoAaccountId());
|
||||
payload.setDepoAccountId(tcr.getDepoAccountId());
|
||||
payload.setTradingClearingRegistryType(tcr.getTradingClearingRegistryType());
|
||||
payload.setTradingClearingRegistryLevel(tcr.getTradingClearingRegistryLevel());
|
||||
payload.setTradingClearingRegistryPurpose(tcr.getTradingClearingRegistryPurpose());
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class TradingClearingRegistryBackendGetFields {
|
|||
private Long moneyAccountId;
|
||||
@JsonProperty
|
||||
@ApiModelProperty(value = "Идентификатор депозитарного счета", example = "")
|
||||
private Long depoAaccountId;
|
||||
private Long depoAccountId;
|
||||
@JsonProperty
|
||||
@ApiModelProperty(value = "Код торгово-клирингового регистра", example = "")
|
||||
private String tradingClearingRegistryType;
|
||||
|
|
@ -77,12 +77,12 @@ public class TradingClearingRegistryBackendGetFields {
|
|||
this.moneyAccountId = moneyAccountId;
|
||||
}
|
||||
|
||||
public Long getDepoAaccountId() {
|
||||
return depoAaccountId;
|
||||
public Long getDepoAccountId() {
|
||||
return depoAccountId;
|
||||
}
|
||||
|
||||
public void setDepoAaccountId(Long depoAaccountId) {
|
||||
this.depoAaccountId = depoAaccountId;
|
||||
public void setDepoAccountId(Long depoAaccountId) {
|
||||
this.depoAccountId = depoAaccountId;
|
||||
}
|
||||
|
||||
public String getTradingClearingRegistryType() {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class TradingClearingRegistryControllerTest extends AbstractControllerTest {
|
|||
existTradingClearingRegistry.setCompanyId(365L);
|
||||
existTradingClearingRegistry.setCode("99999");
|
||||
existTradingClearingRegistry.setMoneyAccountId(404L);
|
||||
existTradingClearingRegistry.setDepoAaccountId(512L);
|
||||
existTradingClearingRegistry.setDepoAccountId(512L);
|
||||
existTradingClearingRegistry.setTradingClearingRegistryType("RUB");
|
||||
existTradingClearingRegistry.setTradingClearingRegistryLevel("OOO ROGA I KOPITA");
|
||||
existTradingClearingRegistry.setTradingClearingRegistryPurpose("848484848484");
|
||||
|
|
@ -129,7 +129,7 @@ class TradingClearingRegistryControllerTest extends AbstractControllerTest {
|
|||
payload.setCompanyId(existTradingClearingRegistry.getCompanyId());
|
||||
payload.setCode(existTradingClearingRegistry.getCode());
|
||||
payload.setMoneyAccountId(existTradingClearingRegistry.getMoneyAccountId());
|
||||
payload.setDepoAaccountId(existTradingClearingRegistry.getDepoAaccountId());
|
||||
payload.setDepoAccountId(existTradingClearingRegistry.getDepoAccountId());
|
||||
payload.setTradingClearingRegistryType(existTradingClearingRegistry.getTradingClearingRegistryType());
|
||||
payload.setTradingClearingRegistryLevel(existTradingClearingRegistry.getTradingClearingRegistryLevel());
|
||||
payload.setTradingClearingRegistryPurpose(existTradingClearingRegistry.getTradingClearingRegistryPurpose());
|
||||
|
|
@ -160,7 +160,7 @@ class TradingClearingRegistryControllerTest extends AbstractControllerTest {
|
|||
existTradingClearingRegistry.setCompanyId(365L);
|
||||
existTradingClearingRegistry.setCode("99999");
|
||||
existTradingClearingRegistry.setMoneyAccountId(404L);
|
||||
existTradingClearingRegistry.setDepoAaccountId(512L);
|
||||
existTradingClearingRegistry.setDepoAccountId(512L);
|
||||
existTradingClearingRegistry.setTradingClearingRegistryType("RUB");
|
||||
existTradingClearingRegistry.setTradingClearingRegistryLevel("OOO ROGA I KOPITA");
|
||||
existTradingClearingRegistry.setTradingClearingRegistryPurpose("848484848484");
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@ public class TradingClearingRegistry extends BusinessObject {
|
|||
private Long companyId;
|
||||
private String code;
|
||||
private Long moneyAccountId;
|
||||
// todo fix typo
|
||||
private Long depoAaccountId;
|
||||
private Long depoAccountId;
|
||||
private String tradingClearingRegistryType;
|
||||
private String tradingClearingRegistryLevel;
|
||||
private String tradingClearingRegistryPurpose;
|
||||
|
|
@ -46,12 +45,12 @@ public class TradingClearingRegistry extends BusinessObject {
|
|||
this.moneyAccountId = value;
|
||||
}
|
||||
|
||||
public Long getDepoAaccountId() {
|
||||
return depoAaccountId;
|
||||
public Long getDepoAccountId() {
|
||||
return depoAccountId;
|
||||
}
|
||||
|
||||
public void setDepoAaccountId(Long value) {
|
||||
this.depoAaccountId = value;
|
||||
public void setDepoAccountId(Long value) {
|
||||
this.depoAccountId = value;
|
||||
}
|
||||
|
||||
public String getTradingClearingRegistryType() {
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ public class ClientCodeService extends QueueConsumer implements InitializingBean
|
|||
query.put("moneyAccountId", moneyAccountId);
|
||||
query.put("tradingClearingRegistryType", TradingClearingRegistryType.Client_B.getKey());
|
||||
if (depoAccountId != null) {
|
||||
query.put("depoAaccountId", depoAccountId); // todo опечатка в поле класса, см. meta.xml!
|
||||
query.put("depoAccountId", depoAccountId);
|
||||
}
|
||||
TradingClearingRegistry result = tradingClearingRegistryMap.getSingleObjectByFieldValues(query);
|
||||
log.trace("TradingClearingRegistry by: {}; {}found", query, result == null ? "not " : "");
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ class ClientCodeServiceTest {
|
|||
registry1.setCompanyId(COMPANY_ID);
|
||||
registry1.setCode("code-120-101");
|
||||
registry1.setMoneyAccountId(131L);
|
||||
registry1.setDepoAaccountId(132L);
|
||||
registry1.setDepoAccountId(132L);
|
||||
registry1.setTradingClearingRegistryType(TradingClearingRegistryType.Client_B.getKey());
|
||||
registry1.setStatus(WorkflowStatus.Active.getKey());
|
||||
tcrImdg.insert(registry1);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class TradingClearingRegistryHistoryMapStore extends TemplateEventMapStor
|
|||
@Override
|
||||
public String[] getFields() {
|
||||
return new String[]{"ID","EVENT_TIME", "EVENT_USER_ID", "EVENT_TYPE",
|
||||
"TRADING_CLEARING_REGISTRY_ID", "COMPANY_ID", "CODE", "MONEY_ACCOUNT_ID", "DEPO_AACCOUNT_ID", "TRADING_CLEARING_REGISTRY_TYPE", "TRADING_CLEARING_REGISTRY_LEVEL", "TRADING_CLEARING_REGISTRY_PURPOSE", "STATUS", "CREATED_AT", "UPDATED_AT"
|
||||
"TRADING_CLEARING_REGISTRY_ID", "COMPANY_ID", "CODE", "MONEY_ACCOUNT_ID", "DEPO_ACCOUNT_ID", "TRADING_CLEARING_REGISTRY_TYPE", "TRADING_CLEARING_REGISTRY_LEVEL", "TRADING_CLEARING_REGISTRY_PURPOSE", "STATUS", "CREATED_AT", "UPDATED_AT"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ public class TradingClearingRegistryHistoryMapStore extends TemplateEventMapStor
|
|||
object.getCompanyId(),
|
||||
object.getCode(),
|
||||
object.getMoneyAccountId(),
|
||||
object.getDepoAaccountId(),
|
||||
object.getDepoAccountId(),
|
||||
object.getTradingClearingRegistryType(),
|
||||
object.getTradingClearingRegistryLevel(),
|
||||
object.getTradingClearingRegistryPurpose(),
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public class TradingClearingRegistryMapStore extends TemplateMapStore<TradingCle
|
|||
@Override
|
||||
public String[] getFields() {
|
||||
return new String[]{
|
||||
"ID", "COMPANY_ID", "CODE", "MONEY_ACCOUNT_ID", "DEPO_AACCOUNT_ID", "TRADING_CLEARING_REGISTRY_TYPE", "TRADING_CLEARING_REGISTRY_LEVEL", "TRADING_CLEARING_REGISTRY_PURPOSE", "STATUS", "CREATED_AT", "UPDATED_AT"
|
||||
"ID", "COMPANY_ID", "CODE", "MONEY_ACCOUNT_ID", "DEPO_ACCOUNT_ID", "TRADING_CLEARING_REGISTRY_TYPE", "TRADING_CLEARING_REGISTRY_LEVEL", "TRADING_CLEARING_REGISTRY_PURPOSE", "STATUS", "CREATED_AT", "UPDATED_AT"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ public class TradingClearingRegistryMapStore extends TemplateMapStore<TradingCle
|
|||
object.setCompanyId(resultSet.getObject("COMPANY_ID", Long.class));
|
||||
object.setCode(resultSet.getObject("CODE", String.class));
|
||||
object.setMoneyAccountId(resultSet.getObject("MONEY_ACCOUNT_ID", Long.class));
|
||||
object.setDepoAaccountId(resultSet.getObject("DEPO_AACCOUNT_ID", Long.class));
|
||||
object.setDepoAccountId(resultSet.getObject("DEPO_ACCOUNT_ID", Long.class));
|
||||
object.setTradingClearingRegistryType(resultSet.getObject("TRADING_CLEARING_REGISTRY_TYPE", String.class));
|
||||
object.setTradingClearingRegistryLevel(resultSet.getObject("TRADING_CLEARING_REGISTRY_LEVEL", String.class));
|
||||
object.setTradingClearingRegistryPurpose(resultSet.getObject("TRADING_CLEARING_REGISTRY_PURPOSE", String.class));
|
||||
|
|
@ -58,7 +58,7 @@ public class TradingClearingRegistryMapStore extends TemplateMapStore<TradingCle
|
|||
object.getCompanyId(),
|
||||
object.getCode(),
|
||||
object.getMoneyAccountId(),
|
||||
object.getDepoAaccountId(),
|
||||
object.getDepoAccountId(),
|
||||
object.getTradingClearingRegistryType(),
|
||||
object.getTradingClearingRegistryLevel(),
|
||||
object.getTradingClearingRegistryPurpose(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue