package ${packageName}.bo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ${functionName}对象
 *
 * @author ${author}
 * @date ${datetime}
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ${ClassName}AddBo implements Serializable {

private static final long serialVersionUID=1L;

#foreach ($column in $columns)

#if($column.isPk!=1)
    /**
     * $column.columnComment
     */
#if($column.javaField=="createBy"||$column.javaField=="createTime")
    @TableField(fill = FieldFill.INSERT)
#end
#if($column.javaField=="updateBy"||$column.javaField=="updateTime")
    @TableField(fill = FieldFill.INSERT_UPDATE)
#end
#if($column.javaField=='delFlag')
    @TableLogic
#end
#if($column.javaType == 'Date')
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
#end
#if($column.javaType == 'Integer' || $column.javaType == 'BigDecimal' || $column.javaType == 'Long' )
    @NotNull(message = "${column.columnComment}不得为空")
#end
#if($column.javaType == 'String')
    @NotBlank(message = "${column.columnComment}不得为空")
#end
#if($column.isPk!=1)
    private $column.javaType $column.javaField;
#end

#end
#end
}
