This commit is contained in:
etreshenkov 2023-05-30 17:54:28 +03:00
parent c0a88239a0
commit 88068659cf
2 changed files with 4 additions and 5 deletions

View file

@ -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();

View file

@ -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;
}
}