From f8751d6e701e0c3e7d8959449b67db6c35d09ec8 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 08 十二月 2024 19:24:07 +0800
Subject: [PATCH] 新增故障类型
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 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..97a0b15 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;
@@ -308,4 +310,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