fuliqi
2024-09-11 b14531e3b850fe6d2fa916ba7b88b3e2bd2ff30a
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java
@@ -1,45 +1,53 @@
package com.ycl.platform.domain.result.HK;
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
/**
 * 人脸设备全检指标监测结果,2.3.0版本新增
 * 人脸设备全检指标监测结果:人脸(设备抓拍图片时钟准确性)
 *
 * @author gonghl
 */
@Data
@Document(collection = "face_device_inspection")
public class FaceDeviceInspectionResult extends BaseResult{
@Document(collection = "hk_face_device_inspection")
public class FaceDeviceInspectionResult extends BaseResult {
    /**
     * 设备名称
     */
    @TextIndexed
    private String deviceName;
    /**
     * 设备编号
     */
    @TextIndexed
    private String externalIndexCode;
    /**
     * 卡口内码或采集设备内码,dataType为1时表示卡口内码,dataType为2或11时表示采集设备内码
     */
    @TextIndexed
    private String indexCode;
    /**
     * IP地址
     */
    @TextIndexed
    private String networkAddr;
    /**
     * 组织编号
     */
    @TextIndexed
    private String orgCode;
    /**
     * 组织名称
     */
    @TextIndexed
    private String orgName;
    /**
@@ -67,6 +75,11 @@
     */
    private Integer snapResult;
    /**
     * 抓拍数据量监测结果,1:正常 2:无数据 4:数据量少
     */
    private String snapResultText;
    // 以下为嵌套对象的字段
    /**
@@ -89,6 +102,19 @@
     */
    private SnapUnique snapUnique;
    public String getSnapResultText() {
        if (snapResult == 1) {
            snapResultText = "正常";
        }
        if (snapResult == 2) {
            snapResultText = "无数据";
        }
        if (snapResult == 4) {
            snapResultText = "数据量少";
        }
        return snapResultText;
    }
    // 内嵌对象定义
    @Data
@@ -109,6 +135,11 @@
        private Integer todayClockResult;
        /**
         * 当日接收的当日抓拍数据时钟准确性判定结果:1是合格,0是不合格
         */
        private String todayClockResultText;
        /**
         * 当日接收的全部抓拍数据中时钟准确数据量
         */
        private Integer allClockCount;
@@ -117,6 +148,31 @@
         * 当日接收的全部抓拍数据中时钟准确性判定结果:1是合格,0是不合格
         */
        private Integer allClockResult;
        /**
         * 当日接收的全部抓拍数据中时钟准确性判定结果:1是合格,0是不合格
         */
        private String allClockResultText;
        public String getTodayClockResultText() {
            if (todayClockResult == 1) {
                todayClockResultText = "合格";
            }
            if (todayClockResult == 0) {
                todayClockResultText = "不合格";
            }
            return todayClockResultText;
        }
        public String getAllClockResultText() {
            if (allClockResult == 1) {
                allClockResultText = "合格";
            }
            if (allClockResult == 0) {
                allClockResultText = "不合格";
            }
            return allClockResultText;
        }
    }
    @Data
@@ -152,6 +208,11 @@
        private Integer todayTimelyResult;
        /**
         * 当日接收的当日抓拍数据及时性判定结果:1是合格,0是不合格
         */
        private String todayTimelyResultText;
        /**
         * 当日接收的全部抓拍数据中延迟数据量
         */
        private Integer allDelayCount;
@@ -175,6 +236,31 @@
         * 当日接收的全部抓拍数据中及时性判定结果:1是合格,0是不合格
         */
        private Integer allTimelyResult;
        /**
         * 当日接收的全部抓拍数据中及时性判定结果:1是合格,0是不合格
         */
        private String allTimelyResultText;
        public String getTodayTimelyResultText() {
            if (todayTimelyResult == 1) {
                todayTimelyResultText = "合格";
            }
            if (todayTimelyResult == 0) {
                todayTimelyResultText = "不合格";
            }
            return todayTimelyResultText;
        }
        public String getAllTimelyResultText() {
            if (allTimelyResult == 1) {
                allTimelyResultText = "合格";
            }
            if (allTimelyResult == 0) {
                allTimelyResultText = "不合格";
            }
            return allTimelyResultText;
        }
    }
    @Data