调整代码

This commit is contained in:
czx
2024-12-03 10:55:13 +08:00
parent dd491c9115
commit 32813b6cea
2 changed files with 19 additions and 18 deletions

View File

@@ -3,10 +3,12 @@ package com.suke.czx;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@Slf4j
@EnableScheduling
@EnableAsync
@SpringBootApplication
public class Application {

View File

@@ -26,25 +26,24 @@ import java.math.BigDecimal;
*/
@Data
@TableName("${tableName}")
public class ${className} implements
public class ${className} implements Serializable {
Serializable {
public static final long serialVersionUID = 1L;
public static final long serialVersionUID = 1L;
#foreach ($column in $columns)
#if($column.columnKey != $null && $column.columnKey == "PRI")
@TableId(type = IdType.ASSIGN_UUID)
#end
#if($column.attrType == "Date")
@Schema(description = "$column.columnComment")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
#end
#if($column.attrType != "Date")
@Schema(description = "$column.columnComment")
#end
@JsonProperty(value = "$column.attrNameMin")
public $column.attrType $column.attrNameMin;
#foreach ($column in $columns)
#if($column.columnKey != $null && $column.columnKey == "PRI")
@TableId(type = IdType.ASSIGN_UUID)
#end
#if($column.attrType == "Date")
@Schema(description = "$column.columnComment")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
#end
#if($column.attrType != "Date")
@Schema(description = "$column.columnComment")
#end
@JsonProperty(value = "$column.attrNameMin")
public $column.attrType $column.attrNameMin;
#end
#end
}
}