From d6f915ecc8ee7efd5fcd3a205b57ef490b918fa5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 21 八月 2024 14:27:59 +0800
Subject: [PATCH] feat:数据中心数字增加中文字段
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/FaceDeviceInspectionResult.java | 78 ++++++
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java | 22 +
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/CrossDetailResult.java | 45 +++
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/MonitoringDetailResult.java | 47 +++
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java | 18 +
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/VehicleDeviceInspectionResult.java | 96 ++++++++
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java | 39 +++
ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OneMachineFileResult.java | 329 +++++++++++++++++++++++++++
8 files changed, 673 insertions(+), 1 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/CrossDetailResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/CrossDetailResult.java
index af13839..7078f96 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/CrossDetailResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/CrossDetailResult.java
@@ -5,6 +5,8 @@
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
+import java.util.Objects;
+
/**
* 鍗″彛灞炴�х洃娴嬬粨鏋滐細杞﹁締锛堣溅杈嗗崱鍙d俊鎭噰闆嗗噯纭巼銆侊級
*
@@ -55,9 +57,52 @@
private Integer lalType;
/**
+ * 缁忕含搴︾洃娴嬬粨鏋滐紝琛ㄧず缁忕含搴︿俊鎭殑鐩戞祴鐘舵�併��
+ * 1:姝e父 2:缁忕含搴︾己澶� 3:涓嶅湪杈栧尯 4:绮惧害杩囦綆
+ */
+ private String lalTypeText;
+
+ /**
* 鍥芥爣缂栫爜鐩戞祴缁撴灉锛岃〃绀哄浗鏍囩紪鐮佺殑鐩戞祴鐘舵�併��
* 1:姝e父 2:缂栫爜闀垮害涓嶇瓑浜�20浣� 3:鍓�6浣嶄笉绗﹀悎鏍囧噯 4:11鑷�13浣嶄笉绗﹀悎鏍囧噯
*/
private Integer gbCodeType;
+ /**
+ * 鍥芥爣缂栫爜鐩戞祴缁撴灉锛岃〃绀哄浗鏍囩紪鐮佺殑鐩戞祴鐘舵�併��
+ * 1:姝e父 2:缂栫爜闀垮害涓嶇瓑浜�20浣� 3:鍓�6浣嶄笉绗﹀悎鏍囧噯 4:11鑷�13浣嶄笉绗﹀悎鏍囧噯
+ */
+ private String gbCodeTypeText;
+
+ public String getLalTypeText() {
+ if (Objects.equals(lalType, 1)) {
+ lalTypeText = "姝e父";
+ }
+ if (Objects.equals(lalType, 2)) {
+ lalTypeText = "缁忕含搴︾己澶�";
+ }
+ if (Objects.equals(lalType, 3)) {
+ lalTypeText = "涓嶅湪杈栧尯";
+ }
+ if (Objects.equals(lalType, 4)) {
+ lalTypeText = "绮惧害杩囦綆";
+ }
+ return lalTypeText;
+ }
+
+ public String getGbCodeTypeText() {
+ if (Objects.equals(gbCodeType, 1)) {
+ gbCodeTypeText = "姝e父";
+ }
+ if (Objects.equals(gbCodeType, 2)) {
+ gbCodeTypeText = "缂栫爜闀垮害涓嶇瓑浜�20浣�";
+ }
+ if (Objects.equals(gbCodeType, 3)) {
+ gbCodeTypeText = "鍓�6浣嶄笉绗﹀悎鏍囧噯";
+ }
+ if (Objects.equals(gbCodeType, 4)) {
+ gbCodeTypeText = "11鑷�13浣嶄笉绗﹀悎鏍囧噯";
+ }
+ return gbCodeTypeText;
+ }
}
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 309d49c..b7b4fa0 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
@@ -75,6 +75,11 @@
*/
private Integer snapResult;
+ /**
+ * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐紝1:姝e父 2:鏃犳暟鎹� 4:鏁版嵁閲忓皯
+ */
+ private String snapResultText;
+
// 浠ヤ笅涓哄祵濂楀璞$殑瀛楁
/**
@@ -97,6 +102,19 @@
*/
private SnapUnique snapUnique;
+ public String getSnapResultText() {
+ if (snapResult == 1) {
+ snapResultText = "姝e父";
+ }
+ if (snapResult == 2) {
+ snapResultText = "鏃犳暟鎹�";
+ }
+ if (snapResult == 4) {
+ snapResultText = "鏁版嵁閲忓皯";
+ }
+ return snapResultText;
+ }
+
// 鍐呭祵瀵硅薄瀹氫箟
@Data
@@ -117,6 +135,11 @@
private Integer todayClockResult;
/**
+ * 褰撴棩鎺ユ敹鐨勫綋鏃ユ姄鎷嶆暟鎹椂閽熷噯纭�у垽瀹氱粨鏋滐細1鏄悎鏍硷紝0鏄笉鍚堟牸
+ */
+ private String todayClockResultText;
+
+ /**
* 褰撴棩鎺ユ敹鐨勫叏閮ㄦ姄鎷嶆暟鎹腑鏃堕挓鍑嗙‘鏁版嵁閲�
*/
private Integer allClockCount;
@@ -125,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
@@ -160,6 +208,11 @@
private Integer todayTimelyResult;
/**
+ * 褰撴棩鎺ユ敹鐨勫綋鏃ユ姄鎷嶆暟鎹強鏃舵�у垽瀹氱粨鏋滐細1鏄悎鏍硷紝0鏄笉鍚堟牸
+ */
+ private String todayTimelyResultText;
+
+ /**
* 褰撴棩鎺ユ敹鐨勫叏閮ㄦ姄鎷嶆暟鎹腑寤惰繜鏁版嵁閲�
*/
private Integer allDelayCount;
@@ -183,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
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/MonitoringDetailResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/MonitoringDetailResult.java
index 14e91b0..d4105dd 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/MonitoringDetailResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/MonitoringDetailResult.java
@@ -5,6 +5,8 @@
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
+import java.util.Objects;
+
/**
* 閲囬泦璁惧灞炴�х洃娴嬬粨鏋滐細浜鸿劯锛堜汉鑴稿崱鍙d俊鎭噰闆嗗噯纭巼锛�
*
@@ -54,9 +56,21 @@
private Integer lalType;
/**
+ * 缁忕含搴︾洃娴嬬粨鏋滐紝琛ㄧず缁忕含搴︿俊鎭殑鐩戞祴鐘舵�併��
+ * 1:姝e父 2:缁忕含搴︾己澶� 3:涓嶅湪杈栧尯 4:绮惧害杩囦綆
+ */
+ private String lalTypeText;
+
+ /**
* 鍥芥爣缂栫爜鐩戞祴缁撴灉: 1:姝e父 2:缂栫爜闀垮害涓嶇瓑浜�20浣� 3:鍓�6浣嶄笉绗﹀悎鏍囧噯 4:11鑷�13浣嶄笉绗﹀悎鏍囧噯
*/
private Integer gbCodeType;
+
+ /**
+ * 鍥芥爣缂栫爜鐩戞祴缁撴灉锛岃〃绀哄浗鏍囩紪鐮佺殑鐩戞祴鐘舵�併��
+ * 1:姝e父 2:缂栫爜闀垮害涓嶇瓑浜�20浣� 3:鍓�6浣嶄笉绗﹀悎鏍囧噯 4:11鑷�13浣嶄笉绗﹀悎鏍囧噯
+ */
+ private String gbCodeTypeText;
/**
* 鏅�氳兘鍔涢泦
@@ -68,4 +82,37 @@
*/
private String intelligentSet;
+
+ public String getLalTypeText() {
+ if (Objects.equals(lalType, 1)) {
+ lalTypeText = "姝e父";
+ }
+ if (Objects.equals(lalType, 2)) {
+ lalTypeText = "缁忕含搴︾己澶�";
+ }
+ if (Objects.equals(lalType, 3)) {
+ lalTypeText = "涓嶅湪杈栧尯";
+ }
+ if (Objects.equals(lalType, 4)) {
+ lalTypeText = "绮惧害杩囦綆";
+ }
+ return lalTypeText;
+ }
+
+ public String getGbCodeTypeText() {
+ if (Objects.equals(gbCodeType, 1)) {
+ gbCodeTypeText = "姝e父";
+ }
+ if (Objects.equals(gbCodeType, 2)) {
+ gbCodeTypeText = "缂栫爜闀垮害涓嶇瓑浜�20浣�";
+ }
+ if (Objects.equals(gbCodeType, 3)) {
+ gbCodeTypeText = "鍓�6浣嶄笉绗﹀悎鏍囧噯";
+ }
+ if (Objects.equals(gbCodeType, 4)) {
+ gbCodeTypeText = "11鑷�13浣嶄笉绗﹀悎鏍囧噯";
+ }
+ return gbCodeTypeText;
+ }
+
}
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
index d343175..049c639 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
@@ -5,6 +5,8 @@
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
+import java.util.Objects;
+
/**
* 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐細杞﹁締锛堣鍥惧簱瀵规帴绋冲畾鎬с�佺偣浣嶅湪绾跨巼銆侊級
*
@@ -66,4 +68,24 @@
*/
private int resultType;
+ /**
+ * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋� 1:姝e父 2:鏃犳暟鎹� 3:鏁版嵁绐侀檷 4:鏁版嵁閲忓皯
+ */
+ private String resultTypeText;
+
+ public String getResultTypeText() {
+ if (Objects.equals(resultType, 1)) {
+ resultTypeText = "姝e父";
+ }
+ if (Objects.equals(resultType, 2)) {
+ resultTypeText = "鏃犳暟鎹�";
+ }
+ if (Objects.equals(resultType, 3)) {
+ resultTypeText = "鏁版嵁绐侀檷";
+ }
+ if (Objects.equals(resultType, 4)) {
+ resultTypeText = "鏁版嵁閲忓皯";
+ }
+ return resultTypeText;
+ }
}
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 0a86ceb..2141d74 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
@@ -70,6 +70,11 @@
*/
private Integer snapResult;
+ /**
+ * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐紝1:姝e父 2:鏃犳暟鎹� 4:鏁版嵁閲忓皯
+ */
+ private String snapResultText;
+
// 浠ヤ笅涓哄祵濂楀璞$殑瀛楁
/**
@@ -97,6 +102,19 @@
*/
private Integrity integrity;
+ public String getSnapResultText() {
+ if (snapResult == 1) {
+ snapResultText = "姝e父";
+ }
+ if (snapResult == 2) {
+ snapResultText = "鏃犳暟鎹�";
+ }
+ if (snapResult == 4) {
+ snapResultText = "鏁版嵁閲忓皯";
+ }
+ return snapResultText;
+ }
+
// 鍐呭祵瀵硅薄瀹氫箟
@Data
@@ -117,6 +135,11 @@
private Integer todayClockResult;
/**
+ * 褰撴棩鎺ユ敹鐨勫綋鏃ユ姄鎷嶆暟鎹椂閽熷噯纭�у垽瀹氱粨鏋滐細1鏄悎鏍硷紝0鏄笉鍚堟牸
+ */
+ private String todayClockResultText;
+
+ /**
* 褰撴棩鎺ユ敹鐨勫叏閮ㄦ姄鎷嶆暟鎹椂閽熷噯纭暟鎹噺
*/
private Integer allClockCount;
@@ -125,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
@@ -160,6 +208,11 @@
private Integer todayTimelyResult;
/**
+ * 褰撴棩鎺ユ敹鐨勫綋鏃ユ姄鎷嶆暟鎹暟鎹強鏃舵�у垽瀹氱粨鏋滐細1鏄悎鏍硷紝0鏄笉鍚堟牸
+ */
+ private String todayTimelyResultText;
+
+ /**
* 褰撴棩鎺ユ敹鐨勫叏閮ㄦ暟鎹欢杩熼噺
*/
private Integer allDelayCount;
@@ -183,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
@@ -214,6 +292,24 @@
* 杞︾墝璇嗗埆寮傚父锛氱粨鏋滅被鍨� 1:姝e父 2:璇嗗埆鐜囦綆 3:鏄煎璇嗗埆鐜囩獊鍙�
*/
private Integer recgResult;
+
+ /**
+ * 杞︾墝璇嗗埆寮傚父锛氱粨鏋滅被鍨� 1:姝e父 2:璇嗗埆鐜囦綆 3:鏄煎璇嗗埆鐜囩獊鍙�
+ */
+ private String recgResultText;
+
+ public String getRecgResultText() {
+ if (recgResult == 1) {
+ recgResultText = "姝e父";
+ }
+ if (recgResult == 2) {
+ recgResultText = "璇嗗埆鐜囦綆";
+ }
+ if (recgResult == 3) {
+ recgResultText = "鏄煎璇嗗埆鐜囩獊鍙�";
+ }
+ return recgResultText;
+ }
}
@Data
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OneMachineFileResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OneMachineFileResult.java
index 44dd4ff..7b80843 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OneMachineFileResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/OneMachineFileResult.java
@@ -2,10 +2,12 @@
import com.ycl.platform.domain.result.BaseResult;
import lombok.Data;
+import org.apache.commons.lang3.ArrayUtils;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
+import utils.StringUtils;
-import java.util.Date;
+import java.util.*;
/**
* 涓�鏈轰竴妗�
@@ -173,4 +175,329 @@
*/
private String SSBMHY;
+
+ public String getJKDWLX() {
+ if (Objects.equals(JKDWLX, "1")) {
+ this.JKDWLX = "涓�绫昏棰戠洃鎺х偣";
+ }
+ if (Objects.equals(JKDWLX, "2")) {
+ this.JKDWLX = "浜岀被瑙嗛鐩戞帶鐐�";
+ }
+ if (Objects.equals(JKDWLX, "3")) {
+ this.JKDWLX = "涓夌被瑙嗛鐩戞帶鐐�";
+ }
+ if (Objects.equals(JKDWLX, "4")) {
+ this.JKDWLX = "鍏畨鍐呴儴瑙嗛鐩戞帶鐐�";
+ }
+ if (Objects.equals(JKDWLX, "9")) {
+ this.JKDWLX = "鍏朵粬鐐逛綅";
+ }
+ return JKDWLX;
+ }
+
+ public String getSXJGNLX() {
+ List<String> sxjgnlx = new ArrayList<>();
+ if (StringUtils.contains(SXJGNLX, "1")) {
+ sxjgnlx.add("瑙嗛鐩戞帶");
+ }
+ if (StringUtils.contains(SXJGNLX, "2")) {
+ sxjgnlx.add("杞﹁締璇嗗埆");
+ }
+ if (StringUtils.contains(SXJGNLX, "3")) {
+ sxjgnlx.add("浜哄憳璇嗗埆");
+ }
+ if (!sxjgnlx.isEmpty()) {
+ this.SXJGNLX = String.join("/", sxjgnlx);
+ }
+ return SXJGNLX;
+ }
+
+ public String getSBZT() {
+ if (Objects.equals(SBZT, "1")) {
+ this.SBZT = "鍦ㄧ敤";
+ }
+ if (Objects.equals(SBZT, "2")) {
+ this.SBZT = "缁翠慨";
+ }
+ if (Objects.equals(SBZT, "3")) {
+ this.SBZT = "鎷嗛櫎";
+ }
+ return SBZT;
+ }
+
+ public String getSBCS() {
+ if (Objects.equals(SBCS, "1")) {
+ this.SBCS = "娴峰悍濞佽";
+ }
+ if (Objects.equals(SBCS, "2")) {
+ this.SBCS = "澶у崕";
+ }
+ if (Objects.equals(SBCS, "3")) {
+ this.SBCS = "澶╁湴浼熶笟";
+ }
+ if (Objects.equals(SBCS, "4")) {
+ this.SBCS = "绉戣揪";
+ }
+ if (Objects.equals(SBCS, "5")) {
+ this.SBCS = "瀹夎澹�";
+ }
+ if (Objects.equals(SBCS, "6")) {
+ this.SBCS = "鍗氫笘";
+ }
+ if (Objects.equals(SBCS, "7")) {
+ this.SBCS = "浜氬畨";
+ }
+ if (Objects.equals(SBCS, "8")) {
+ this.SBCS = "鑻遍鎷�";
+ }
+ if (Objects.equals(SBCS, "9")) {
+ this.SBCS = "瀹囪";
+ }
+ if (Objects.equals(SBCS, "10")) {
+ this.SBCS = "娴蜂俊";
+ }
+ if (Objects.equals(SBCS, "11")) {
+ this.SBCS = "涓槦鐢靛瓙";
+ }
+ if (Objects.equals(SBCS, "12")) {
+ this.SBCS = "鏄庢櫙";
+ }
+ if (Objects.equals(SBCS, "13")) {
+ this.SBCS = "鑱旀兂";
+ }
+ if (Objects.equals(SBCS, "14")) {
+ this.SBCS = "涓叴";
+ }
+ if (Objects.equals(SBCS, "99")) {
+ this.SBCS = "鍏朵粬";
+ }
+ return SBCS;
+ }
+
+ public String getSXJLX() {
+ if (Objects.equals(SXJLX, "1")) {
+ this.SXJLX = "鐞冩満";
+ }
+ if (Objects.equals(SXJLX, "2")) {
+ this.SXJLX = "鍗婄悆";
+ }
+ if (Objects.equals(SXJLX, "3")) {
+ this.SXJLX = "鍥哄畾鏋満";
+ }
+ if (Objects.equals(SXJLX, "4")) {
+ this.SXJLX = "閬ユ帶鏋満";
+ }
+ if (Objects.equals(SXJLX, "5")) {
+ this.SXJLX = "鍗″彛鏋満";
+ }
+ if (Objects.equals(SXJLX, "99")) {
+ this.SXJLX = "鏈煡";
+ }
+ return SXJLX;
+ }
+
+
+ public String getBGSX() {
+ if (Objects.equals(BGSX, "1")) {
+ this.BGSX = "鏃犺ˉ鍏�";
+ }
+ if (Objects.equals(BGSX, "2")) {
+ this.BGSX = "绾㈠琛ュ厜";
+ }
+ if (Objects.equals(BGSX, "3")) {
+ this.BGSX = "鐧藉厜琛ュ厜";
+ }
+ if (Objects.equals(BGSX, "9")) {
+ this.BGSX = "鍏朵粬琛ュ厜";
+ }
+ return BGSX;
+ }
+
+ public String getSXJBMGS() {
+ if (Objects.equals(SXJBMGS, "1")) {
+ this.SXJBMGS = "MPEG-4";
+ }
+ if (Objects.equals(SXJBMGS, "2")) {
+ this.SXJBMGS = "H.264";
+ }
+ if (Objects.equals(SXJBMGS, "3")) {
+ this.SXJBMGS = "SVAC";
+ }
+ if (Objects.equals(SXJBMGS, "4")) {
+ this.SXJBMGS = "H.265";
+ }
+ return SXJBMGS;
+ }
+
+ public String getSXJWZLX() {
+ List<String> wzlx = new ArrayList<>();
+ if (StringUtils.isBlank(SXJWZLX)) {
+ return SXJWZLX;
+ }
+ String[] split = SXJWZLX.split("/");
+ if (ArrayUtils.contains(split, "1")) {
+ wzlx.add("鐪侀檯妫�鏌ョ珯");
+ }
+ if (ArrayUtils.contains(split, "2")) {
+ wzlx.add("鍏氭斂鏈哄叧");
+ }
+ if (ArrayUtils.contains(split, "3")) {
+ wzlx.add("杞︾珯鐮佸ご");
+ }
+ if (ArrayUtils.contains(split, "4")) {
+ wzlx.add("涓績骞垮満");
+ }
+ if (ArrayUtils.contains(split, "5")) {
+ wzlx.add("浣撹偛鍦洪");
+ }
+ if (ArrayUtils.contains(split, "6")) {
+ wzlx.add("鍟嗕笟涓績");
+ }
+ if (ArrayUtils.contains(split, "7")) {
+ wzlx.add("瀹楁暀鍦烘墍");
+ }
+ if (ArrayUtils.contains(split, "8")) {
+ wzlx.add("鏍″洯鍛ㄨ竟");
+ }
+ if (ArrayUtils.contains(split, "9")) {
+ wzlx.add("娌诲畨澶嶆潅鍖哄煙");
+ }
+ if (ArrayUtils.contains(split, "10")) {
+ wzlx.add("浜ら�氬共绾�");
+ }
+ if (ArrayUtils.contains(split, "11")) {
+ wzlx.add("鍖婚櫌鍛ㄨ竟");
+ }
+ if (ArrayUtils.contains(split, "12")) {
+ wzlx.add("閲戣瀺鏈烘瀯鍛ㄨ竟");
+ }
+ if (ArrayUtils.contains(split, "13")) {
+ wzlx.add("鍗遍櫓鐗╁搧鍦烘墍鍛ㄨ竟");
+ }
+ if (ArrayUtils.contains(split, "14")) {
+ wzlx.add("鍗氱墿棣嗗睍瑙堥");
+ }
+ if (ArrayUtils.contains(split, "15")) {
+ wzlx.add("閲嶇偣姘村煙銆佽埅閬�");
+ }
+ if (ArrayUtils.contains(split, "96")) {
+ wzlx.add("甯傞檯鍏畨妫�鏌ョ珯");
+ }
+ if (ArrayUtils.contains(split, "97")) {
+ wzlx.add("娑夊鍦烘墍");
+ }
+ if (ArrayUtils.contains(split, "98")) {
+ wzlx.add("杈瑰娌跨嚎");
+ }
+ if (ArrayUtils.contains(split, "99")) {
+ wzlx.add("鏃呮父鏅尯");
+ }
+ this.SXJWZLX = String.join("/", wzlx);
+ return SXJWZLX;
+ }
+
+ public String getJSFW() {
+ if (Objects.equals(JSFW, "1")) {
+ this.JSFW = "涓�";
+ }
+ if (Objects.equals(JSFW, "2")) {
+ this.JSFW = "瑗�";
+ }
+ if (Objects.equals(JSFW, "3")) {
+ this.JSFW = "鍗�";
+ }
+ if (Objects.equals(JSFW, "4")) {
+ this.JSFW = "鍖�";
+ }
+ if (Objects.equals(JSFW, "5")) {
+ this.JSFW = "涓滃崡";
+ }
+ if (Objects.equals(JSFW, "6")) {
+ this.JSFW = "涓滃寳";
+ }
+ if (Objects.equals(JSFW, "7")) {
+ this.JSFW = "瑗垮崡";
+ }
+ if (Objects.equals(JSFW, "8")) {
+ this.JSFW = "瑗垮寳";
+ }
+ if (Objects.equals(JSFW, "9")) {
+ this.JSFW = "鍏ㄥ悜";
+ }
+ return JSFW;
+ }
+
+ public String getLWSX() {
+ if (Objects.equals(LWSX, "0")) {
+ this.LWSX = "宸茶仈缃�";
+ }
+ if (Objects.equals(LWSX, "1")) {
+ this.LWSX = "鏈仈缃�";
+ }
+ return LWSX;
+ }
+
+ public String getSSBMHY() {
+ List<String> ssbmhy = new ArrayList<>();
+ if (StringUtils.isBlank(SSBMHY)) {
+ return SSBMHY;
+ }
+ String[] split = SSBMHY.split("/");
+ if (ArrayUtils.contains(split, "1")) {
+ ssbmhy.add("鍏畨鏈哄叧");
+ }
+ if (ArrayUtils.contains(split, "2")) {
+ ssbmhy.add("鐜繚閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "3")) {
+ ssbmhy.add("鏂囧崥閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "4")) {
+ ssbmhy.add("鍖荤枟閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "5")) {
+ ssbmhy.add("鏃呮父绠$悊");
+ }
+ if (ArrayUtils.contains(split, "6")) {
+ ssbmhy.add("鏂伴椈骞跨數");
+ }
+ if (ArrayUtils.contains(split, "7")) {
+ ssbmhy.add("椋熷搧鍖昏嵂鐩戠潱绠$悊閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "8")) {
+ ssbmhy.add("鏁欒偛绠$悊閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "9")) {
+ ssbmhy.add("妫�瀵熼櫌");
+ }
+ if (ArrayUtils.contains(split, "10")) {
+ ssbmhy.add("娉曢櫌");
+ }
+ if (ArrayUtils.contains(split, "11")) {
+ ssbmhy.add("閲戣瀺閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "12")) {
+ ssbmhy.add("浜ら�氶儴闂�");
+ }
+ if (ArrayUtils.contains(split, "13")) {
+ ssbmhy.add("浣忔埧鍜屽煄涔″缓璁鹃儴闂�");
+ }
+ if (ArrayUtils.contains(split, "14")) {
+ ssbmhy.add("姘村埄閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "15")) {
+ ssbmhy.add("鏋椾笟閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "16")) {
+ ssbmhy.add("瀹夊叏鐢熶骇鐩戠潱閮ㄩ棬");
+ }
+ if (ArrayUtils.contains(split, "17")) {
+ ssbmhy.add("甯傛斂甯傚濮�");
+ }
+ if (ArrayUtils.contains(split, "18")) {
+ ssbmhy.add("鍥藉湡灞�");
+ }
+ this.SSBMHY = String.join("/", ssbmhy);
+ return SSBMHY;
+ }
}
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
index 9ed4af2..be732c7 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java
@@ -7,6 +7,7 @@
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
+import java.util.Objects;
/**
* 褰曞儚鍙敤鎬�
@@ -72,6 +73,11 @@
private Integer recordStatus;
/**
+ * 褰曞儚瀹屾暣鐘舵�侊紝1锛氬畬鏁达紝0锛氶棿姝囷紝-1锛氬紓甯�
+ */
+ private String recordStatusText;
+
+ /**
* 缁熻鏃堕棿锛屾牸寮忎负鏃ユ湡瀛楃涓�
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@@ -82,4 +88,16 @@
*/
private String tenantId;
+ public String getRecordStatusText() {
+ if (Objects.equals(recordStatus, 1)) {
+ recordStatusText = "瀹屾暣";
+ }
+ if (Objects.equals(recordStatus, 0)) {
+ recordStatusText = "闂存瓏";
+ }
+ if (Objects.equals(recordStatus, -1)) {
+ recordStatusText = "寮傚父";
+ }
+ return recordStatusText;
+ }
}
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
index 7516d2f..6a7bb2f 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/VideoOnlineResult.java
@@ -55,6 +55,10 @@
*/
private Integer icmpStatus;
/**
+ * icmp鐘舵�� 2/1/-1/0 鍏ㄩ儴/鍦ㄧ嚎/绂荤嚎/鏈煡
+ */
+ private String icmpStatusText;
+ /**
* 鏈�杩慽cmp鏃堕棿
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@@ -101,6 +105,10 @@
*/
private Integer status;
/**
+ * 鍦ㄧ嚎鐘舵�� 2/1/-1/0 鍏ㄩ儴/鍦ㄧ嚎/绂荤嚎/鏈煡
+ */
+ private String statusText;
+ /**
* 鐪佸巺鏍囩
*/
private String tagStr;
@@ -122,4 +130,35 @@
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date vqdTime;
+ public String getIcmpStatusText() {
+ if (icmpStatus == 2) {
+ this.icmpStatusText = "鍏ㄩ儴";
+ }
+ if (icmpStatus == 1) {
+ this.icmpStatusText = "鍦ㄧ嚎";
+ }
+ if (icmpStatus == -1) {
+ this.icmpStatusText = "绂荤嚎";
+ }
+ if (icmpStatus == 0) {
+ this.icmpStatusText = "鏈煡";
+ }
+ return icmpStatusText;
+ }
+
+ public String getStatusText() {
+ if (status == 2) {
+ this.statusText = "鍏ㄩ儴";
+ }
+ if (status == 1) {
+ this.statusText = "鍦ㄧ嚎";
+ }
+ if (status == -1) {
+ this.statusText = "绂荤嚎";
+ }
+ if (status == 0) {
+ this.statusText = "鏈煡";
+ }
+ return statusText;
+ }
}
--
Gitblit v1.8.0