From ddb3068a51a8af8aa9a8f8c2cb9b6e9228b0c8d9 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 28 八月 2024 11:53:27 +0800
Subject: [PATCH] 同步国标设备、点播定时任务优化

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/result/UY/RecordMetaDSumResult.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

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 3f2c9ed..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
@@ -1,11 +1,13 @@
 package com.ycl.platform.domain.result.UY;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 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;
 
 import java.util.Date;
+import java.util.Objects;
 
 /**
  * 褰曞儚鍙敤鎬�
@@ -30,6 +32,7 @@
     /**
      * 鍒涘缓鏃堕棿锛屾牸寮忎负鏃ユ湡鏃堕棿瀛楃涓�
      */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date createTime;
 
     /**
@@ -70,8 +73,14 @@
     private Integer recordStatus;
 
     /**
+     * 褰曞儚瀹屾暣鐘舵�侊紝1锛氬畬鏁达紝0锛氶棿姝囷紝-1锛氬紓甯�
+     */
+    private String recordStatusText;
+
+    /**
      * 缁熻鏃堕棿锛屾牸寮忎负鏃ユ湡瀛楃涓�
      */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date statTime;
 
     /**
@@ -79,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;
+    }
 }

--
Gitblit v1.8.0