session logging fix
This commit is contained in:
parent
c5cad4d27c
commit
d141ff3224
2 changed files with 7 additions and 8 deletions
|
|
@ -1,5 +1,8 @@
|
|||
package ru.spcex.clearing.service.validation;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Supplier;
|
||||
import ru.clearing.classes.statics.data.account.Account;
|
||||
import ru.clearing.classes.statics.data.company.Company;
|
||||
import ru.clearing.classes.statics.data.company.relation.Relation;
|
||||
|
|
@ -17,10 +20,6 @@ import ru.spcex.platform.utils.enumeration.EnumMessage;
|
|||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
import ru.spcex.platform.utils.validation.IValidationRule;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public enum RegistryStep3ValidationRule implements IValidationRule<ImdgValidationContext<Registry>> {
|
||||
ClearingAvailable() {
|
||||
@Override
|
||||
|
|
@ -102,6 +101,6 @@ public enum RegistryStep3ValidationRule implements IValidationRule<ImdgValidatio
|
|||
|
||||
@Override
|
||||
public String ruleName() {
|
||||
return "STradesValidationRule." + name();
|
||||
return "RegistryStep3ValidationRule." + name();
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ public class RequirementsAndObligationCreation implements ISessionStage {
|
|||
i += 1;
|
||||
continue;
|
||||
}
|
||||
log.trace("matched executions id {} and {}", matched.getFirst().getId(), matched.getSecond().getId());
|
||||
log.debug("matched executions id {} and {}", matched.getFirst().getId(), matched.getSecond().getId());
|
||||
i += 2;
|
||||
ExecutionCommon partyExec = matched.getFirst();
|
||||
ExecutionCommon counterExec = matched.getSecond();
|
||||
|
|
@ -91,7 +91,7 @@ public class RequirementsAndObligationCreation implements ISessionStage {
|
|||
.registry(registry)
|
||||
.update();
|
||||
registryImdg.update(registry);
|
||||
log.trace("executions id {} and {}: updated rgs.id={}", partyExec.getId(), counterExec.getId(), registry.getId());
|
||||
log.debug("executions id {} and {}: updated rgs.id={}", partyExec.getId(), counterExec.getId(), registry.getId());
|
||||
}, () -> {
|
||||
IRegistryBuilder registryBuilder = defineBuilderByExecType(partyExec.type());
|
||||
Registry newRegister = registryBuilder
|
||||
|
|
@ -101,7 +101,7 @@ public class RequirementsAndObligationCreation implements ISessionStage {
|
|||
.returnDeposit(returnedDep)
|
||||
.build();
|
||||
registryImdg.insert(newRegister);
|
||||
log.trace("executions id {} and {}: created rgs.id={}", partyExec.getId(), counterExec.getId(), newRegister.getId());
|
||||
log.debug("executions id {} and {}: created rgs.id={}", partyExec.getId(), counterExec.getId(), newRegister.getId());
|
||||
});
|
||||
findAndUpdateOrCreate.accept(partyExec, RegistryDesignation.O, false);
|
||||
findAndUpdateOrCreate.accept(partyExec, RegistryDesignation.T, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue