From 72dd95fdcde21b4641162d418d6fe8423bb74507 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 01 十一月 2024 02:05:52 +0800 Subject: [PATCH] 数据中心优化完成、车辆url算法优化、大图可用算法优化 --- 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