Explorar el Código

feat:PDSC, 字段调整

zhangkai hace 2 meses
padre
commit
4e0594ad1e

+ 11 - 3
nationrel-module-pdsc-api/src/main/java/com/nationrel/modules/pdsc/entity/PdscMaturity.java

@@ -1,9 +1,8 @@
 package com.nationrel.modules.pdsc.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.*;
 import lombok.experimental.Accessors;
@@ -67,6 +66,15 @@ public class PdscMaturity implements Serializable {
     @Excel(name = "支持CTQ", width = 15)
     @Schema(description = "支持CTQ")
     private String supportCtq;
+    /**
+     * 评估日期
+     */
+    @Excel(name = "评估日期", width = 15)
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    @Schema(description = "评估日期")
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
+    private Date evaluateDate;
     /**
      * 创建人
      */

+ 11 - 0
nationrel-module-pdsc-api/src/main/java/com/nationrel/modules/pdsc/vo/PdscMaturityVo.java

@@ -1,8 +1,11 @@
 package com.nationrel.modules.pdsc.vo;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.*;
 
+import java.util.Date;
+
 /**
  * @Description: 成熟度
  * @Author: zhangkai
@@ -20,6 +23,9 @@ public class PdscMaturityVo {
      * 主键
      */
     private String id;
+    /**
+     * 客户声音
+     */
     private String customerVoice;
     /**
      * 硬件
@@ -33,4 +39,9 @@ public class PdscMaturityVo {
      * 支持CTQ
      */
     private String supportCtq;
+    /**
+     * 评估日期
+     */
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+    private Date evaluateDate;
 }