|
@ -6,6 +6,8 @@ import ${import}; |
|
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
|
import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
|
|
import lombok.experimental.Accessors; |
|
|
import com.lzbi.common.annotation.Excel; |
|
|
import com.lzbi.common.annotation.Excel; |
|
|
#if($table.crud || $table.sub) |
|
|
#if($table.crud || $table.sub) |
|
|
import com.lzbi.module.base.BaseModuleEntity; |
|
|
import com.lzbi.module.base.BaseModuleEntity; |
|
@ -25,6 +27,7 @@ import com.lzbi.common.core.domain.TreeEntity; |
|
|
#set($Entity="TreeEntity") |
|
|
#set($Entity="TreeEntity") |
|
|
#end |
|
|
#end |
|
|
@Data |
|
|
@Data |
|
|
|
|
|
@Accessors(chain = true) |
|
|
public class ${ClassName} extends ${Entity} |
|
|
public class ${ClassName} extends ${Entity} |
|
|
{ |
|
|
{ |
|
|
private static final long serialVersionUID = 1L; |
|
|
private static final long serialVersionUID = 1L; |
|
@ -41,11 +44,14 @@ public class ${ClassName} extends ${Entity} |
|
|
#end |
|
|
#end |
|
|
#if($parentheseIndex != -1) |
|
|
#if($parentheseIndex != -1) |
|
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
|
|
|
|
|
@ApiModelProperty(name = "${comment}",notes = "") |
|
|
#elseif($column.javaType == 'Date') |
|
|
#elseif($column.javaType == 'Date') |
|
|
@JsonFormat(pattern = "yyyy-MM-dd") |
|
|
@JsonFormat(pattern = "yyyy-MM-dd") |
|
|
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") |
|
|
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") |
|
|
|
|
|
@ApiModelProperty(name = "${comment}",notes = "") |
|
|
#else |
|
|
#else |
|
|
@Excel(name = "${comment}") |
|
|
@Excel(name = "${comment}") |
|
|
|
|
|
@ApiModelProperty(name = "${comment}",notes = "$column.javaField") |
|
|
#end |
|
|
#end |
|
|
#end |
|
|
#end |
|
|
private $column.javaType $column.javaField; |
|
|
private $column.javaType $column.javaField; |
|
|