|
@@ -10,15 +10,10 @@ import lombok.AllArgsConstructor;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.experimental.Accessors;
|
|
import lombok.experimental.Accessors;
|
|
|
-import io.swagger.annotations.ApiModel;
|
|
|
|
|
-import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
<#list table.importPackages as pkg>
|
|
<#list table.importPackages as pkg>
|
|
|
-<#if pkg == "java.util.Date" || pkg == "java.time.LocalDateTime">
|
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
|
-</#if>
|
|
|
|
|
|
|
+
|
|
|
</#list>
|
|
</#list>
|
|
|
|
|
|
|
|
<#if table.comment!="">
|
|
<#if table.comment!="">
|
|
@@ -29,17 +24,9 @@ import java.time.LocalDateTime;
|
|
|
@Data
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
-@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
@Accessors(chain = true)
|
|
@Accessors(chain = true)
|
|
|
-<#if table.comment!="">
|
|
|
|
|
-@ExportTitle("${table.comment!}")
|
|
|
|
|
-</#if>
|
|
|
|
|
-<#if table.comment=="">
|
|
|
|
|
-@ExportTitle
|
|
|
|
|
-</#if>
|
|
|
|
|
@TableName(value = "${table.name}", autoResultMap = true)
|
|
@TableName(value = "${table.name}", autoResultMap = true)
|
|
|
-@ApiModel(value="实体类:${table.comment}", description="表名:${table.name}")
|
|
|
|
|
-public class ${entity} extends PageInfo<${entity}> implements Serializable {
|
|
|
|
|
|
|
+public class ${entity} implements Serializable {
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* 数据库字段
|
|
* 数据库字段
|
|
@@ -78,19 +65,7 @@ public class ${entity} extends PageInfo<${entity}> implements Serializable {
|
|
|
<#-- @TableLogic(value = "1", delval = "-1")-->
|
|
<#-- @TableLogic(value = "1", delval = "-1")-->
|
|
|
<#-- </#if>-->
|
|
<#-- </#if>-->
|
|
|
<#-- 创建时需要自动赋值的列 -->
|
|
<#-- 创建时需要自动赋值的列 -->
|
|
|
- <#if !field.keyFlag && field.comment!="" && field.name !="value_flag" &&
|
|
|
|
|
- field.name !="update_user_id" && field.name !="create_user_id" && field.name !="op_create_time" && field.name !="op_update_time">
|
|
|
|
|
- @Excel(name = "${field.comment!}")
|
|
|
|
|
- </#if>
|
|
|
|
|
- <#if field.name =="op_create_time" || field.name =="op_update_time">
|
|
|
|
|
- @Excel(name = "${field.comment!}", format = "yyyy-MM-dd HH:mm:ss", width = 20)
|
|
|
|
|
- </#if>
|
|
|
|
|
- @ApiModelProperty(value = "${field.comment!}")
|
|
|
|
|
- <#if field.propertyType =="Date">
|
|
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
- @TableField(typeHandler = TimestampTypeHandler.class)
|
|
|
|
|
- private LocalDateTime ${field.propertyName};
|
|
|
|
|
- <#elseif field.type == "bigint[]">
|
|
|
|
|
|
|
+ <#if field.type == "bigint[]">
|
|
|
@TableField(typeHandler = BigIntListTypeHandler.class)
|
|
@TableField(typeHandler = BigIntListTypeHandler.class)
|
|
|
private List<Long> ${field.propertyName};
|
|
private List<Long> ${field.propertyName};
|
|
|
<#elseif field.type == "int[]" || field.type == "integer[]">
|
|
<#elseif field.type == "int[]" || field.type == "integer[]">
|
|
@@ -111,17 +86,6 @@ public class ${entity} extends PageInfo<${entity}> implements Serializable {
|
|
|
|
|
|
|
|
</#list>
|
|
</#list>
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- * 相关属性
|
|
|
|
|
- * @TableField(exist = false)
|
|
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
- /*
|
|
|
|
|
- * 关联属性 + 查询条件
|
|
|
|
|
- * @TableField(exist = false)
|
|
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
}
|
|
}
|