From 2150b0b87de4ec80a9d3f968c6de947f361ca19f Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 15 十一月 2024 11:36:06 +0800
Subject: [PATCH] 在线监测对于纯车辆人脸可以恢复在线状态
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java
index 2141d74..9914bcf 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java
@@ -1,7 +1,9 @@
package com.ycl.platform.domain.result.HK;
import com.ycl.platform.domain.result.BaseResult;
+import com.ycl.platform.domain.vo.DataCenter.SnapClockVO;
import lombok.Data;
+import org.springframework.beans.BeanUtils;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
@@ -120,7 +122,7 @@
@Data
public static class SnapClock {
/**
- * 鏃堕挓鍑嗙‘鐜�
+ * 鏃堕挓鍑嗙‘鐜囷細1 == 100%
*/
private Float clockPercent;
@@ -178,7 +180,7 @@
@Data
public static class SnapTimely {
/**
- * 鍙婃椂鐜�
+ * 鍙婃椂鐜� 1 == 100%
*/
private Float timelyPercent;
@@ -354,4 +356,17 @@
*/
private Integer noIntegrityCount;
}
+
+ public static SnapClockVO getVO(VehicleDeviceInspectionResult result){
+ SnapClockVO snapClockVO = new SnapClockVO();
+ BeanUtils.copyProperties(result,snapClockVO);
+ snapClockVO.setClockPercent(result.getSnapClock().getClockPercent());
+ snapClockVO.setTodayClockCount(result.getSnapClock().getTodayClockCount());
+ snapClockVO.setTodayClockResult(result.getSnapClock().getTodayClockResult());
+ snapClockVO.setAllClockCount(result.getSnapClock().getAllClockCount());
+ snapClockVO.setAllClockResult(result.getSnapClock().getAllClockResult());
+ snapClockVO.setAllClockResultText(result.getSnapClock().getAllClockResultText());
+ snapClockVO.setTodayClockResultText(result.getSnapClock().getTodayClockResultText());
+ return snapClockVO;
+ }
}
--
Gitblit v1.8.0