refactor: remove WCS tidy task-state recovery

This commit is contained in:
zgw
2026-07-23 15:55:43 +08:00
parent 7b63e7863f
commit 41e412f214
7 changed files with 269 additions and 53 deletions

View File

@@ -0,0 +1,71 @@
package com.ruoyi.algorithm.integration;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "fortucky.algorithm")
public class AlgorithmProperties {
private SchedulingMode mode = SchedulingMode.SHADOW;
private String warehouseId = "01";
private int pageSize = 100;
private boolean databaseWritesEnabled = true;
private boolean legacyFallbackOnTechnicalError;
private long tidyAutoScanMs = 600_000L;
private long tidyReconcileMs = 5_000L;
private int tidyClaimLeaseSeconds = 60;
private String tidyWcsSnapshotUrl = "http://localhost:8081/wcs2Wms/api/tidyVehicleSnapshot";
private String replayRunId = "";
private String replayDatabase = "";
public SchedulingMode getMode() {
return mode;
}
public void setMode(SchedulingMode mode) {
this.mode = mode;
}
public String getWarehouseId() {
return warehouseId;
}
public void setWarehouseId(String warehouseId) {
this.warehouseId = warehouseId;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public boolean isDatabaseWritesEnabled() {
return databaseWritesEnabled;
}
public void setDatabaseWritesEnabled(boolean databaseWritesEnabled) {
this.databaseWritesEnabled = databaseWritesEnabled;
}
public boolean isLegacyFallbackOnTechnicalError() {
return legacyFallbackOnTechnicalError;
}
public void setLegacyFallbackOnTechnicalError(boolean legacyFallbackOnTechnicalError) {
this.legacyFallbackOnTechnicalError = legacyFallbackOnTechnicalError;
}
public long getTidyAutoScanMs() { return tidyAutoScanMs; }
public void setTidyAutoScanMs(long value) { this.tidyAutoScanMs = value; }
public long getTidyReconcileMs() { return tidyReconcileMs; }
public void setTidyReconcileMs(long value) { this.tidyReconcileMs = value; }
public int getTidyClaimLeaseSeconds() { return tidyClaimLeaseSeconds; }
public void setTidyClaimLeaseSeconds(int value) { this.tidyClaimLeaseSeconds = value; }
public String getTidyWcsSnapshotUrl() { return tidyWcsSnapshotUrl; }
public void setTidyWcsSnapshotUrl(String value) { this.tidyWcsSnapshotUrl = value; }
public String getReplayRunId() { return replayRunId; }
public void setReplayRunId(String value) { this.replayRunId = value; }
public String getReplayDatabase() { return replayDatabase; }
public void setReplayDatabase(String value) { this.replayDatabase = value; }
}