SDF21 добавил условие на поиск регистра по securityId
swt-importer фикс поля 35B/83D
This commit is contained in:
parent
f00cf0ee3b
commit
475c3f99ac
2 changed files with 6 additions and 1 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue