|
@@ -3,11 +3,14 @@ package com.lingyue.project.project.viewmapper;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
|
|
|
|
+
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
|
|
@Data
|
|
@Data
|
|
|
-@TableName("v_projects")
|
|
|
|
|
|
|
+@TableName(value = "v_projects", autoResultMap = true)
|
|
|
public class VProject implements Serializable {
|
|
public class VProject implements Serializable {
|
|
|
|
|
|
|
|
private Long id;
|
|
private Long id;
|
|
@@ -18,6 +21,8 @@ public class VProject implements Serializable {
|
|
|
private String templateType;
|
|
private String templateType;
|
|
|
private String contentHtml;
|
|
private String contentHtml;
|
|
|
private String contentMarkdown;
|
|
private String contentMarkdown;
|
|
|
|
|
+ @TableField(typeHandler = JacksonTypeHandler.class)
|
|
|
|
|
+ private Object contentJson;
|
|
|
private Long elementCount;
|
|
private Long elementCount;
|
|
|
private Long attachmentCount;
|
|
private Long attachmentCount;
|
|
|
private Long ruleCount;
|
|
private Long ruleCount;
|