From 9969bea2a8c1eab64c12a51a2d24d65e5b6c0dd0 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期一, 24 十月 2022 18:12:41 +0800 Subject: [PATCH] 日志导出乱码 日志查询导出 代码重构 --- ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java b/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java index d8656ac..5cbe0eb 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java +++ b/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java @@ -4,9 +4,13 @@ import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import java.io.Serializable; /** @@ -20,6 +24,7 @@ @Data @EqualsAndHashCode(callSuper = false) @TableName("ums_data_dictionary") +@ApiModel(value = "瀛楀吀琛�") public class DataDictionary implements Serializable { private static final long serialVersionUID = 1L; @@ -28,48 +33,60 @@ * 涓婚敭 */ @TableId(value = "id", type = IdType.AUTO) + @ApiModelProperty(value = "涓婚敭",dataType = "Long") private Long id; /** * 瀛楀吀鍊� */ @TableField("name") + @ApiModelProperty(value = "杩濊涓殑绫诲瀷/澶х被/灏忕被/妗堢敱,杩濆缓涓殑/绫诲瀷/绫诲埆",dataType = "String") + @NotBlank(message = "瀛楀吀鍊间负绌�") private String name; /** * 缂栫爜 */ @TableField("code") + @ApiModelProperty(value = "缂栫爜 ps:鏆傛椂涓嶄紶",dataType = "String") private String code; /** * 鐖剁骇id */ @TableField("parent_id") - private String parentId; + @ApiModelProperty(value = "鐖剁骇id ps:涓轰笂涓�绾х殑id",dataType = "String") + private Integer parentId; /** * 灞傜骇 */ @TableField("level") + @ApiModelProperty(value = "绾у埆:杩濊涓被鍨�/澶х被/灏忕被/妗堢敱 鍒嗗埆鏄�1/2/3/4 ,杩濆缓涓被鍨�/绫诲埆 鍒嗗埆鏄�1/2",dataType = "Integer") + @NotNull(message = "灞傜骇涓虹┖") private Short level; /** * 瀛楀吀绫诲瀷 */ @TableField("type_name") + @ApiModelProperty(value = "瀛楀吀绫诲瀷:杩濊涓洪棶棰樼被鍨�,杩濆缓涓鸿繚寤虹被鍨�",dataType = "String") + @NotBlank(message = "瀛楀吀绫诲瀷涓虹┖") private String typeName; /** * 瀛楀吀绫诲瀷浠g爜 */ @TableField("type_code") + @ApiModelProperty(value = "瀛楀吀绫诲瀷浠g爜:杩濊涓�'01',杩濆缓涓�'06'",dataType = "String") + @NotBlank(message = "瀛楀吀绫诲瀷涓虹┖") private String typeCode; /** * 澶囨敞 */ @TableField("remark") + @ApiModelProperty(value = "澶囨敞 ps:棰勭暀瀛楁",dataType = "String") private String remark; } -- Gitblit v1.8.0