package com.younike.service.pojo;

#foreach ($import in $importList)
import ${import};
#end
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.younike.common.utils.poi.Excel;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
#if($table.crud || $table.sub)
import com.younike.common.core.domain.BaseEntity;
#elseif($table.tree)
import com.younike.common.core.domain.TreeEntity;
#end

/**
 * ${functionName}对象 ${tableName}
 *
 * @author ${author}
 * @date ${datetime}
 */
#if($table.crud || $table.sub)
    #set($Entity="BaseEntity")
#elseif($table.tree)
    #set($Entity="TreeEntity")
#end
@Data
public class ${ClassName} extends ${Entity} {
    private static final long serialVersionUID=1L;

#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
    /** $column.columnComment */
#if($pkColumn == $column && $column.javaType == 'String')
    @TableId(type = IdType.ASSIGN_UUID)
#end
#if($column.javaField == "version")
    @Version
#end
#if($column.javaType == 'Date')
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String $column.javaField;
#else
    private $column.javaType $column.javaField;
#end

#end
#end


}
