| | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import constant.ApiConstants; |
| | | import enumeration.DeviceType; |
| | | import lombok.Data; |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | |
| | | private String deviceNo; |
| | | |
| | | /** |
| | | * 摄像机品牌 |
| | | * 摄像机品牌0/1/2 海康/大华/宇视 |
| | | */ |
| | | private Integer deviceBrand; |
| | | |
| | | /** |
| | | * 摄像机品牌0/1/2 海康/大华/宇视 |
| | | */ |
| | | private String deviceBrandStr; |
| | | /** |
| | | * 设备类型 |
| | | */ |
| | |
| | | if(ApiConstants.OSD_Correct.equals(result.getOsdPartCorrect())) result.setOsdPartCorrectText("正确"); |
| | | else if(ApiConstants.OSD_Error.equals(result.getOsdPartCorrect())) result.setOsdPartCorrectText("错误"); |
| | | else { result.setOsdPartCorrectText("未知"); } |
| | | |
| | | if(DeviceType.DH.getType().equals(result.getDeviceBrand())) result.setDeviceBrandStr(DeviceType.DH.getDesc()); |
| | | else if(DeviceType.HK.getType().equals(result.getDeviceBrand())) result.setDeviceBrandStr(DeviceType.HK.getDesc()); |
| | | else if(DeviceType.YS.getType().equals(result.getDeviceBrand())) result.setDeviceBrandStr(DeviceType.YS.getDesc()); |
| | | else { result.setDeviceBrandStr("未知"); } |
| | | } |
| | | } |