package ${globalConfig.parentPack}.model.auto; import java.io.Serializable; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; ${JavaClassPackages} /** * ${TsysTables.tableComment} ${TsysTables.tableModel} * @author ${globalConfig.author}_自动生成 * @email ${globalConfig.email} * @date ${datetime} */ @ApiModel(value="${TsysTables.tableModel}", description="${TsysTables.tableComment}") public class ${TsysTables.tableModel} implements Serializable { private static final long serialVersionUID = 1L; #foreach ($column in $beanColumns) /** $column.column_comment **/ #if(${column.beanType} == "java.util.Date") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") #end @ApiModelProperty(value = "$column.column_comment") private ${column.attrType} ${column.beanName}; #end #foreach ($column in $beanColumns) #if($column.beanType == "java.util.String") public $column.attrType get${column.funName}() { return $column.beanName; } public void set${column.funName}(${column.attrType} ${column.beanName}){ this.${column.beanName} = ${column.beanName} == null ? null : ${column.beanName}.trim(); } #else public ${column.attrType} get${column.funName}() { return ${column.beanName}; } public void set${column.funName}(${column.attrType} ${column.beanName}) { this.${column.beanName} = ${column.beanName}; } #end #end public ${TsysTables.tableModel}() { super(); } #set( $lag = 0) #set( $lagstr="") #foreach ($column in $beanColumns) #if(($lag+1)>=(${beanColumns.size()})) #set($lagstr = $lagstr+"${column.attrType} ${column.beanName}") #else #set($lagstr = $lagstr+"${column.attrType} ${column.beanName},") #end #set( $lag = $lag + 1 ) #end public ${TsysTables.tableModel}($lagstr) { #foreach ($column in $beanColumns) this.${column.beanName} = ${column.beanName}; #end } }