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