优化目录查询的WebUI逻辑

This commit is contained in:
648540858
2024-11-26 11:20:12 +08:00
parent b8139b63de
commit 4e165fe243
9 changed files with 33 additions and 59 deletions

View File

@@ -1,14 +1,10 @@
package com.genersoft.iot.vmp.gb28181.bean;
import lombok.Data;
import org.jetbrains.annotations.NotNull;
import java.time.Instant;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
/**
* @author lin
@@ -19,7 +15,7 @@ public class CatalogData {
* 命令序列号
*/
private int sn;
private int total;
private Integer total;
private Instant time;
private Device device;
private String errorMsg;

View File

@@ -1,51 +1,26 @@
package com.genersoft.iot.vmp.gb28181.bean;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 摄像机同步状态
* @author lin
*/
@Data
@Schema(description = "摄像机同步状态")
public class SyncStatus {
@Schema(description = "总数")
private int total;
private Integer total;
@Schema(description = "当前更新多少")
private int current;
private Integer current;
@Schema(description = "错误描述")
private String errorMsg;
@Schema(description = "是否同步中")
private boolean syncIng;
private Boolean syncIng;
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
public int getCurrent() {
return current;
}
public void setCurrent(int current) {
this.current = current;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public boolean isSyncIng() {
return syncIng;
}
public void setSyncIng(boolean syncIng) {
this.syncIng = syncIng;
}
}