| | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import constant.ApiConstants; |
| | | import lombok.Data; |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | import java.util.Date; |
| | |
| | | /** |
| | | * 国标码 |
| | | */ |
| | | @TextIndexed |
| | | private String deviceNo; |
| | | |
| | | /** |
| | | * 摄像机品牌 |
| | | */ |
| | | private Integer deviceBrand; |
| | | |
| | | /** |
| | | * 设备类型 |
| | | */ |
| | |
| | | /** |
| | | * ip |
| | | */ |
| | | @TextIndexed |
| | | private String ip; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * osd通道名 |
| | | */ |
| | | @TextIndexed |
| | | private String osdName; |
| | | /** |
| | | * osd省 |
| | |
| | | private Integer osdTimeCorrect; |
| | | |
| | | /** |
| | | * osd通道名是否正确 |
| | | * osd通道名是否正确 1正确 0未知 -1错 |
| | | */ |
| | | private Integer osdNameCorrect; |
| | | /** |
| | |
| | | private Integer osdLbCorrect; |
| | | |
| | | |
| | | public static Boolean checkOsd(OsdCheckResult result) { |
| | | return ApiConstants.OSD_Correct.equals(result.getOsdTimeCorrect()) && |
| | | ApiConstants.OSD_Correct.equals(result.getOsdNameCorrect()) && |
| | | ApiConstants.OSD_Correct.equals(result.getOsdProvinceCorrect()) && |
| | | ApiConstants.OSD_Correct.equals(result.getOsdCityCorrect()) && |
| | | ApiConstants.OSD_Correct.equals(result.getOsdPartCorrect()); |
| | | } |
| | | |
| | | public static Boolean checkTime(OsdCheckResult result) { |
| | | return ApiConstants.OSD_Correct.equals(result.getOsdTimeCorrect()); |
| | | } |
| | | } |