clearing-service http://jira.mfd.msk:8088/browse/CLS-290 stage 10/11 мелочи
This commit is contained in:
parent
627533f66c
commit
343497b556
4 changed files with 45 additions and 1 deletions
|
|
@ -37,6 +37,11 @@ public enum TaskType {
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Step 10
|
||||
*/
|
||||
FinishingSession,
|
||||
|
||||
/**
|
||||
* Step 11
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class EndStageNotification implements ISessionStage {
|
|||
}
|
||||
|
||||
protected Collection<Registry> selectRegistry() {
|
||||
String registrySQL = "registryStatus=" + RegistryStatus.OK.getKey() + ")";
|
||||
String registrySQL = "registryStatus='" + RegistryStatus.OK.getKey() + "'";
|
||||
Collection<Registry> result = registryImdg.getCollectionObjectsBySQL(registrySQL);
|
||||
log.trace("Selected {} registry's by sql: {}", result.size(), registrySQL);
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
package ru.spcex.clearing.session.stage.task;
|
||||
|
||||
public class FinishingSessionPayload {
|
||||
private Long sessionId;
|
||||
|
||||
public Long getSessionId() {
|
||||
return sessionId;
|
||||
}
|
||||
|
||||
public void setSessionId(Long sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package ru.spcex.platform.enumeration;
|
||||
|
||||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
|
||||
public enum SessionStatus implements IEnumKey {
|
||||
ACTV("ACTV"),
|
||||
CLRN("CLRN"),
|
||||
CLOS("CLOS");
|
||||
|
||||
|
||||
SessionStatus(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
private String key;
|
||||
|
||||
@Override
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsByKey(String key) {
|
||||
return IEnumKey.super.equalsByKey(key);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue