From eb8c2e062f554aa250d660ac798cdb1de7eeeb99 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 12 十二月 2024 00:14:15 +0800
Subject: [PATCH] 首页抓拍量按钮

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceSamplingResult.java |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceSamplingResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceSamplingResult.java
index c7428d1..02e1390 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceSamplingResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceSamplingResult.java
@@ -1,11 +1,17 @@
 package com.ycl.platform.domain.result.HK;
 
 import com.ycl.platform.domain.result.BaseResult;
+import com.ycl.platform.domain.vo.DataCenter.BigPicUsefulVO;
 import lombok.Data;
+import org.springframework.beans.BeanUtils;
+import org.springframework.data.mongodb.core.index.TextIndexed;
 import org.springframework.data.mongodb.core.mapping.Document;
 
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+
 /**
- * 杞﹁締璁惧鎶芥鎸囨爣鐩戞祴缁撴灉锛�2.3.0鐗堟湰鏂板
+ * 杞﹁締璁惧鎶芥鎸囨爣鐩戞祴缁撴灉锛氳溅杈嗭紙杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬э級
  *
  * @author gonghl
  */
@@ -16,26 +22,31 @@
     /**
      * 鍗″彛鍐呯爜鎴栭噰闆嗚澶囧唴鐮侊紝dataType涓�1鏃惰〃绀哄崱鍙e唴鐮侊紝dataType涓�11鏃惰〃绀洪噰闆嗚澶囧唴鐮�
      */
+    @TextIndexed
     private String indexCode;
 
     /**
      * 璁惧鎴栧崱鍙e浗鏍囩紪鐮�
      */
+    @TextIndexed
     private String externalIndexCode;
 
     /**
      * 璁惧鎴栧崱鍙e悕绉�
      */
+    @TextIndexed
     private String deviceName;
 
     /**
      * 缁勭粐缂栧彿
      */
+    @TextIndexed
     private String orgCode;
 
     /**
      * 缁勭粐鍚嶇О
      */
+    @TextIndexed
     private String orgName;
 
     // 浠ヤ笅涓哄祵濂楀璞$殑瀛楁
@@ -73,6 +84,8 @@
          * OSD鏍囨敞寮傚父鏁版嵁閲�
          */
         private Integer osdExpCount;
+
+
     }
 
     @Data
@@ -122,4 +135,14 @@
          */
         private Float importantConPercent;
     }
+
+    public static BigPicUsefulVO getPicVO(VehicleDeviceSamplingResult result){
+        BigPicUsefulVO vo = new BigPicUsefulVO();
+        BeanUtils.copyProperties(result,vo);
+        vo.setBigPicExpCount(result.getBigUseful().getBigPicExpCount());
+        vo.setBigUsefulPercent(result.getBigUseful().getBigUsefulPercent());
+        vo.setSampleCount(result.getBigUseful().getSampleCount());
+        vo.setOsdExpCount(result.getBigUseful().getOsdExpCount());
+        return vo;
+    }
 }

--
Gitblit v1.8.0