fuliqi
2025-01-02 73caf5a7072976021f43a764ed2ad73404f4d040
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
@@ -3,6 +3,9 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.domain.result.BaseResult;
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;
@@ -16,12 +19,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 +45,11 @@
    /**
     * 摄像机ID
     */
    @TextIndexed
    private String deviceId;
    /**
     * 摄像机名称
     */
    @TextIndexed
    private String deviceName;
    /**
@@ -60,7 +65,6 @@
    /**
     * 国标平台ID
     */
    @TextIndexed
    private String platId;
    /**
@@ -82,6 +86,7 @@
     * 统计时间,格式为日期字符串
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Indexed(background = true)
    private Date statTime;
    /**