From c686c5005c803d03ed551fd0117d88bd2bf9fd7c Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期五, 26 七月 2024 15:58:10 +0800
Subject: [PATCH] 修改参数注释

---
 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoOth/OthFile.java |   54 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 38 insertions(+), 16 deletions(-)

diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoOth/OthFile.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoOth/OthFile.java
index 8bc69f8..d51a84e 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoOth/OthFile.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoOth/OthFile.java
@@ -1,50 +1,72 @@
 package com.dy.pmsGlobal.pojoOth;
 
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.alibaba.fastjson2.annotation.JSONField;
+import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
+import com.baomidou.mybatisplus.annotation.*;
 import com.dy.common.po.BaseEntity;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.*;
+
+import java.util.Date;
 
 /**
  * 涓婅浇鐨勬枃浠朵俊鎭�
  */
-//2024-04-12涓嬮潰TableName涓嶇敤閰嶇疆琛ㄥ悕绉帮紙value="BaUser"鎴栤�渂a_user鈥濓級
-//鍙閫氳繃椹煎嘲鍛藉悕娉曞垯绫诲悕涓庤〃鍚嶅搴旇捣鏉ュ氨鍙互浜嗭紝濡傛灉涓嶈兘瀵瑰簲璧锋潵锛岄渶瑕佹寚瀹氳〃鍚嶇О
-//渚嬪@TableName(value="TestUser" autoResultMap = true)
-@TableName(value="ba_role", autoResultMap = true)
+
+@TableName(value="Oth_file", autoResultMap = true)
 @Data
 @Builder
 @ToString
 @NoArgsConstructor
 @AllArgsConstructor
 public class OthFile implements BaseEntity {
+
+    public static final long serialVersionUID = 202404231631001L;
     /**
-    * 涓婚敭
+     * 涓婚敭
+     */
+    /* 濡傛灉涓嶆槑纭� type绫诲瀷锛孧P灏嗚嚜鍔ㄤ负鍏惰祴鍊硷紙闆姳ID锛�
+    IdType:
+    AUTO(0),  //鑷
+    NONE(1), //鏈缃富閿�
+    INPUT(2), //鎵嬪姩杈撳叆
+    ASSIGN_ID(3),  //榛樿鍏ㄥ眬鍞竴ID
+    ASSIGN_UUID(4), //鍏ㄥ眬鍞竴鐨� uuid
     */
+    @JSONField(serializeUsing= ObjectWriterImplToString.class)
+    @TableId(value = "id", type = IdType.INPUT)
     public Long id;
 
     /**
-    * 鏂囦欢鍘熷悕绉�
-    */
+     * 鏂囦欢鍘熷悕绉�
+     */
     public String orgName;
 
     /**
-    * 鎵╁睍鍚�
-    */
+     * 鎵╁睍鍚�
+     */
     public String extName;
 
     /**
-    * 涓婁紶鏂囦欢鍚庣郴缁熻嚜鍔ㄧ粰鏂囦欢璧嬬殑鏂板悕绉�
-    */
+     * 涓婁紶鏂囦欢鍚庣郴缁熻嚜鍔ㄧ粰鏂囦欢璧嬬殑鏂板悕绉�
+     */
     public String newName;
 
     /**
-    * 鏂囦欢hash鍊�
-    */
+     * 鏂囦欢hash鍊�
+     */
     public Integer hash;
 
     /**
-    * 鏂囦欢鍦ㄦ湇鍔$瀛樺偍鐨勭浉瀵硅矾寰�
-    */
+     * 鏂囦欢鍦ㄦ湇鍔$瀛樺偍鐨勭浉瀵硅矾寰�
+     */
     public String filePath;
 
+    /**
+     * 鏂囦欢涓婅浇鏃ユ湡
+     */
+    @TableField(value = "dt", fill = FieldFill.INSERT)
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    public Date dt;
+
 }
\ No newline at end of file

--
Gitblit v1.8.0