package ${packageName}.domain;

#foreach ($import in $importList)
import ${import};
#end
#foreach ($column in $columns)
#if($column.javaField=='createTime')
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
#end
#end
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
/**
 * @author ${author}
 * @date ${datetime}
 */
@Data
@TableName(value = "${tableName}")
@Accessors(chain = true)
public class ${ClassName}{
    private static final long serialVersionUID = 1L;

#foreach ($column in $columns)
#if($column.list)
#set($parentheseIndex=$column.columnComment.indexOf("（"))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($parentheseIndex != -1)
    @ApiModelProperty(value = "${comment}:$column.readConverterExp()")
#elseif($column.javaType == 'Date')
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "${comment}")
#else
    @ApiModelProperty(value = "${comment}")
#end
#end
    #if($column.javaField=='createBy')
    @TableField(fill = FieldFill.INSERT)
    #end
    #if($column.javaField=='updateBy')
    @TableField(fill = FieldFill.UPDATE)
    #end
    #if($column.javaField=='createTime')
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    #end
    #if($column.javaField=='updateTime')
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    #end
    private $column.javaType $column.javaField;

#end

}
