exporter
This commit is contained in:
parent
c0a88239a0
commit
88068659cf
2 changed files with 4 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ public class LauncherCommandReceiver extends QueueConsumer implements Initializi
|
|||
log.info("SwtExporterRequest request received: {}", request);
|
||||
SwtExporterRequest req = request.getRequestPayload();
|
||||
for (AbstractExporterService exporter : exporterServices) {
|
||||
if (exporter.getType()==req.getType()) {
|
||||
if (exporter.getType().getKey().equals(req.getType())) {
|
||||
log.debug("Export {}", exporter);
|
||||
try {
|
||||
exporter.process();
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
package ru.spcex.clearing.platform.messaging.domain.cud.importexport;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import ru.spcex.platform.enumeration.SwtTable;
|
||||
|
||||
public class SwtExporterRequest {
|
||||
@JsonProperty
|
||||
public SwtTable type;
|
||||
public String type;
|
||||
|
||||
public SwtTable getType() {
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(SwtTable type) {
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue