From ee03b526152d335dd1e42bc01a1f717d1205204c Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 26 五月 2025 15:27:04 +0800 Subject: [PATCH] (部级录像可用率,重点录像可用率,录像可用率)计算可用率bug修复,hk接口bug修复, --- ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 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..6a6b806 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; @@ -17,32 +19,27 @@ /** * 璁惧缂栧彿锛宒ataType涓�1鏃惰〃绀哄崱鍙e唴鐮侊紝dataType涓�11鏃惰〃绀洪噰闆嗚澶囧唴鐮� */ - @TextIndexed private String externalIndexCode; /** * 璁惧鍚嶇О */ - @TextIndexed private String deviceName; /** * 鍗″彛鍐呯爜鎴栭噰闆嗚澶囧唴鐮� */ - @TextIndexed private String indexCode; /** * 缁勭粐缂栧彿 */ - @TextIndexed private String orgCode; /** * 缁勭粐鍚嶇О */ - @TextIndexed private String orgName; /** @@ -120,7 +117,7 @@ @Data public static class SnapClock { /** - * 鏃堕挓鍑嗙‘鐜� + * 鏃堕挓鍑嗙‘鐜囷細1 == 100% */ private Float clockPercent; @@ -178,7 +175,7 @@ @Data public static class SnapTimely { /** - * 鍙婃椂鐜� + * 鍙婃椂鐜� 1 == 100% */ private Float timelyPercent; @@ -354,4 +351,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