| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | @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; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 摄像机ID |
| | | */ |
| | | @TextIndexed |
| | | private String deviceId; |
| | | |
| | | /** |
| | | * 摄像机名称 |
| | | */ |
| | | @TextIndexed |
| | | private String deviceName; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 国标平台ID |
| | | */ |
| | | @TextIndexed |
| | | private String platId; |
| | | |
| | | /** |
| | |
| | | * 统计时间,格式为日期字符串 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Indexed(background = true) |
| | | private Date statTime; |
| | | |
| | | /** |