| | |
| | | package com.ycl.platform.domain.result.HK; |
| | | |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import lombok.Data; |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 抓拍数据量监测结果 |
| | | * 抓拍数据量监测结果:车辆(视图库对接稳定性、点位在线率、) |
| | | * |
| | | * @author gonghl |
| | | */ |
| | | @Data |
| | | @Document(collection = "snapshot_data_monitor") |
| | | public class SnapshotDataMonitorResult extends BaseResult{ |
| | | @Document(collection = "hk_snapshot_data_monitor") |
| | | public class SnapshotDataMonitorResult extends BaseResult { |
| | | /** |
| | | * 数据类型 |
| | | */ |
| | |
| | | /** |
| | | * dataType为1:卡口内码 dataType为2或11:采集设备内码 |
| | | */ |
| | | @TextIndexed |
| | | private String indexCode; |
| | | |
| | | /** |
| | | * 设备或卡口国标编码 |
| | | */ |
| | | @TextIndexed |
| | | private String externalIndexCode; |
| | | |
| | | /** |
| | | * 设备或卡口名称 |
| | | */ |
| | | @TextIndexed |
| | | private String deviceName; |
| | | |
| | | /** |
| | | * 组织编号 |
| | | */ |
| | | @TextIndexed |
| | | private String orgCode; |
| | | |
| | | /** |
| | |
| | | */ |
| | | private int resultType; |
| | | |
| | | /** |
| | | * 抓拍数据量监测结果 1:正常 2:无数据 3:数据突降 4:数据量少 |
| | | */ |
| | | private String resultTypeText; |
| | | |
| | | public String getResultTypeText() { |
| | | if (Objects.equals(resultType, 1)) { |
| | | resultTypeText = "正常"; |
| | | } |
| | | if (Objects.equals(resultType, 2)) { |
| | | resultTypeText = "无数据"; |
| | | } |
| | | if (Objects.equals(resultType, 3)) { |
| | | resultTypeText = "数据突降"; |
| | | } |
| | | if (Objects.equals(resultType, 4)) { |
| | | resultTypeText = "数据量少"; |
| | | } |
| | | return resultTypeText; |
| | | } |
| | | } |