| | |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 抓拍数据量监测结果:车辆(视图库对接稳定性、点位在线率、) |
| | | * |
| | |
| | | */ |
| | | 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; |
| | | } |
| | | } |