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/VehicleDeviceInspectionResult.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 insertions(+), 0 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 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 -- Gitblit v1.8.0