|
@@ -1,20 +1,23 @@
|
|
|
package com.qunzhixinxi.hnqz.admin.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
import java.io.Serializable;
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 企业规章制度
|
|
|
* @TableName wm_dept_regulations
|
|
|
*/
|
|
|
-@TableName(value ="wm_dept_regulations")
|
|
|
+@TableName(value ="wm_dept_regulations", autoResultMap = true)
|
|
|
@Data
|
|
|
public class WmDeptRegulations implements Serializable {
|
|
|
private static final long serialVersionUID = 345213921273253849L;
|
|
@@ -40,7 +43,8 @@ public class WmDeptRegulations implements Serializable {
|
|
|
* 文件地址
|
|
|
*/
|
|
|
@NotEmpty(message = "文件地址必填")
|
|
|
- private String[] fileUrl;
|
|
|
+ @TableField(typeHandler = FastjsonTypeHandler.class)
|
|
|
+ private List<FileUrlObj> fileUrl;
|
|
|
|
|
|
/**
|
|
|
* 排序
|
|
@@ -68,4 +72,19 @@ public class WmDeptRegulations implements Serializable {
|
|
|
*/
|
|
|
private LocalDateTime updateTime;
|
|
|
|
|
|
+ /**
|
|
|
+ * 文件 URL obj
|
|
|
+ *
|
|
|
+ * @author lixuesong
|
|
|
+ * @date 2023/09/27
|
|
|
+ */
|
|
|
+ @Data
|
|
|
+ public static class FileUrlObj implements Serializable {
|
|
|
+ private static final long serialVersionUID = 7914265352319844404L;
|
|
|
+
|
|
|
+ private String fileName;
|
|
|
+
|
|
|
+ private String url;
|
|
|
+ }
|
|
|
+
|
|
|
}
|