From 1b39f39eacfcd1f8bb46d261686e81a2ad9bafbd Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 05 十二月 2024 17:24:27 +0800
Subject: [PATCH] 视频时间差阈值
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/MonitorQualifyResult.java | 43 +++++++++++++++++++++++++++++++++++++++----
1 files changed, 39 insertions(+), 4 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/MonitorQualifyResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/MonitorQualifyResult.java
index eee213c..3c48e69 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/MonitorQualifyResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/MonitorQualifyResult.java
@@ -1,6 +1,7 @@
package com.ycl.platform.domain.result.UY;
import com.ycl.platform.domain.result.BaseResult;
+import com.ycl.platform.domain.vo.DataCenter.MonitorQualifyResultVO;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
@@ -68,12 +69,12 @@
public static class QualifyResult {
/**
* 鏄惁閿欒 姝e父鏄痜alse锛宼ure琛ㄧず鏈夐棶棰�
- * */
+ */
private Boolean error;
private String errorMessage;
/**
* 灞曠ず鍊�
- * */
+ */
@TextIndexed
private String showValue;
/**
@@ -85,7 +86,7 @@
//鍏ㄥ杩攖ure
public static boolean correct(MonitorQualifyResult result) {
- return checkError(result.getName()) &&
+ return checkError(result.getName()) &&
checkError(result.getCivilCode()) &&
checkError(result.getIp()) &&
checkError(result.getSerialNumber()) &&
@@ -102,6 +103,40 @@
//妫�鏌ユ寚鏍囷紝姝e父杩斿洖true
public static boolean checkError(MonitorQualifyResult.QualifyResult result) {
- return result.getError() != null && !result.getError();
+ return result!=null && result.getError() != null && !result.getError();
+ }
+
+ public static MonitorQualifyResultVO getVO(MonitorQualifyResult result) {
+ MonitorQualifyResultVO vo = new MonitorQualifyResultVO();
+ vo.setCivilCode(result.getCivilCode().getShowValue());
+ vo.setCivilCodeError(result.getCivilCode().getError());
+ vo.setIp(result.getIp().getShowValue());
+ vo.setIpError(result.getIp().getError());
+ vo.setIntegratedDevice(result.getIntegrated_device().getShowValue());
+ vo.setIntegratedDeviceError(result.getIntegrated_device().getError());
+ vo.setJkdwlx(result.getJkdwlx().getShowValue());
+ vo.setJkdwlxError(result.getJkdwlx().getError());
+ vo.setLatitude(result.getLatitude().getShowValue());
+ vo.setLatitudeError(result.getLatitude().getError());
+ vo.setLongitude(result.getLongitude().getShowValue());
+ vo.setLongitudeError(result.getLongitude().getError());
+ vo.setMacdz(result.getMacdz().getShowValue());
+ vo.setMacdzError(result.getMacdz().getError());
+ vo.setName(result.getName().getShowValue());
+ vo.setNameError(result.getName().getError());
+ vo.setSbzt(result.getSbzt().getShowValue());
+ vo.setSbztError(result.getSbzt().getError());
+ vo.setSerialNumber(result.getSerialNumber().getShowValue());
+ vo.setSerialNumberError(result.getSerialNumber().getError());
+ vo.setSxjcjqy(result.getSxjcjqy().getShowValue());
+ vo.setSxjcjqyError(result.getSxjcjqy().getError());
+ vo.setSxjgnlx(result.getSxjgnlx().getShowValue());
+ vo.setSxjgnlxError(result.getSxjgnlx().getError());
+ if (result.getNewDevice()) {
+ vo.setNewDevice("鏄�");
+ } else {
+ vo.setNewDevice("鍚�");
+ }
+ return vo;
}
}
--
Gitblit v1.8.0