package ${package}.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.framework.web.domain.BaseEntity; #foreach ($column in $columns) #if($column.attrType == 'Date' && ($column.attrname != 'createTime' && $column.attrname != 'updateTime')) import java.util.Date; #break #end #end #foreach ($column in $columns) #if($column.attrType == 'BigDecimal') import java.math.BigDecimal; #break #end #end /** * ${tableComment}่กจ ${tableName} * * @author ${author} * @date ${datetime} */ public class ${className} extends BaseEntity { private static final long serialVersionUID = 1L; #foreach ($column in $columns) #if($column.attrname != 'createBy' && $column.attrname != 'createTime' && $column.attrname != 'updateBy' && $column.attrname != 'updateTime' && $column.attrname != 'remark') /** $column.columnComment */ private $column.attrType $column.attrname; #end #end #foreach ($column in $columns) #if($column.attrname != 'createBy' && $column.attrname != 'createTime' && $column.attrname != 'updateBy' && $column.attrname != 'updateTime' && $column.attrname != 'remark') public void set${column.attrName}($column.attrType $column.attrname) { this.$column.attrname = $column.attrname; } public $column.attrType get${column.attrName}() { return $column.attrname; } #end #end public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) #foreach ($column in $columns) .append("${column.attrname}", get${column.attrName}()) #end .toString(); } }