zxl
2025-06-24 3b0516a2959e25576e4f3fda697a3b025d06c8c9
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
@@ -2,11 +2,16 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
import com.ycl.platform.domain.vo.DynamicColumnVO;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
@@ -16,12 +21,16 @@
 */
@Data
@Document(collection = "uy_record_meta_d_sum")
@CompoundIndexes({
        //name:索引名称 def:字段(1正序 -1倒序) unique:是否唯一索引
        //直接加到字段上面没用
        @CompoundIndex(name = "video_record", def = "{statTime:-1, no:1}")
})
public class RecordMetaDSumResult extends BaseResult {
    /**
     * 行政区域名称
     */
    @TextIndexed
    private String arealayername;
    /**
@@ -38,13 +47,11 @@
    /**
     * 摄像机ID
     */
    @TextIndexed
    private String deviceId;
    /**
     * 摄像机名称
     */
    @TextIndexed
    private String deviceName;
    /**
@@ -60,7 +67,6 @@
    /**
     * 国标平台ID
     */
    @TextIndexed
    private String platId;
    /**
@@ -77,14 +83,19 @@
     * 录像完整状态,1:完整,0:间歇,-1:异常
     */
    private String recordStatusText;
    /**
     * 统计时间,格式为日期字符串
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Indexed(background = true)
    private Date statTime;
    /**
     * 动态列
     */
    private List<DynamicColumnVO> dynamicColumnList;
    /**
     * 租户ID
     */
    private String tenantId;