From 12017a00ed21f8d461ab444d0bff12f61f476909 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 06 二月 2025 16:29:57 +0800
Subject: [PATCH] osd测试代码清理
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java
index b7b4fa0..d2037c4 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.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;
@@ -17,37 +19,31 @@
/**
* 璁惧鍚嶇О
*/
- @TextIndexed
private String deviceName;
/**
* 璁惧缂栧彿
*/
- @TextIndexed
private String externalIndexCode;
/**
* 鍗″彛鍐呯爜鎴栭噰闆嗚澶囧唴鐮侊紝dataType涓�1鏃惰〃绀哄崱鍙e唴鐮侊紝dataType涓�2鎴�11鏃惰〃绀洪噰闆嗚澶囧唴鐮�
*/
- @TextIndexed
private String indexCode;
/**
* IP鍦板潃
*/
- @TextIndexed
private String networkAddr;
/**
* 缁勭粐缂栧彿
*/
- @TextIndexed
private String orgCode;
/**
* 缁勭粐鍚嶇О
*/
- @TextIndexed
private String orgName;
/**
@@ -308,4 +304,17 @@
*/
private Integer nouniqueCount;
}
+
+ public static SnapClockVO getVO(FaceDeviceInspectionResult 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