mirror of
https://github.com/yzcheng90/X-SpringBoot
synced 2025-11-05 14:41:05 +08:00
调整代码
This commit is contained in:
@@ -3,10 +3,12 @@ package com.suke.czx;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.scheduling.annotation.EnableAsync;
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
|
@EnableAsync
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class Application {
|
public class Application {
|
||||||
|
|
||||||
|
|||||||
@@ -26,25 +26,24 @@ import java.math.BigDecimal;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("${tableName}")
|
@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)
|
#foreach ($column in $columns)
|
||||||
#if($column.columnKey != $null && $column.columnKey == "PRI")
|
#if($column.columnKey != $null && $column.columnKey == "PRI")
|
||||||
@TableId(type = IdType.ASSIGN_UUID)
|
@TableId(type = IdType.ASSIGN_UUID)
|
||||||
#end
|
#end
|
||||||
#if($column.attrType == "Date")
|
#if($column.attrType == "Date")
|
||||||
@Schema(description = "$column.columnComment")
|
@Schema(description = "$column.columnComment")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
#end
|
#end
|
||||||
#if($column.attrType != "Date")
|
#if($column.attrType != "Date")
|
||||||
@Schema(description = "$column.columnComment")
|
@Schema(description = "$column.columnComment")
|
||||||
#end
|
#end
|
||||||
@JsonProperty(value = "$column.attrNameMin")
|
@JsonProperty(value = "$column.attrNameMin")
|
||||||
public $column.attrType $column.attrNameMin;
|
public $column.attrType $column.attrNameMin;
|
||||||
|
|
||||||
#end
|
#end
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user