SDF21 добавил условие на поиск регистра по securityId

swt-importer фикс поля 35B/83D
This commit is contained in:
ialbert 2023-08-08 21:43:11 +03:00
parent f00cf0ee3b
commit 475c3f99ac
2 changed files with 6 additions and 1 deletions

View file

@ -154,6 +154,7 @@ public class Sdf21Executor extends AbstractExecutor<SDf21> {
.rgsCode(RegistryTradingParams.AS_T)
.companyId(company.getId()) //раньше было stmt.getAddresseeId()
.accountId(account.getId()) //раньше было stmt.getAccountId()
.securityId(stmt.getSecurityId())
.find();
astFound.ifPresentOrElse(rgs -> {
log.debug("stmt.id={}, found AS*T.id={}, updating...", stmt.getId(), rgs.getId());
@ -368,6 +369,11 @@ public class Sdf21Executor extends AbstractExecutor<SDf21> {
return this;
}
private RegistrySearch securityId(Long securityId) {
predicate = pb.and(predicate, pb.equals("securityId", securityId));
return this;
}
private RegistrySearch status() {
predicate = pb.and(predicate, pb.or(
pb.equals("registryStatus", RegistryStatus.PROC.getKey()),

View file

@ -178,7 +178,6 @@ public enum ReadingPatterns {
public void reed(String line, SWTRecord record) {
String[] cells = getValueWitoutKey(line, ":83D:").split(":");
cells = Arrays.copyOf(cells, 3);
record.setValFor35BTag(cells);
record.setValFor83DTag(cells);
}
},