package com.xinyilu.system.domain.kindergartenCheckReport;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinyilu.common.annotation.Excel;
import com.xinyilu.common.custominterface.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 幼儿园检测报告对象 kindergarten_check_report
 *
 * @author xinyilu
 * @date 2022-09-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "幼儿园检测报告对象", description = "kindergarten_check_report")
public class KindergartenCheckReport {
    private static final long serialVersionUID = 3707741196966279161L;
    /**
     * 主键id
     */
    @NotNull(message = "请选择监测报告", groups = {Update.class})
    private Long id;

    /**
     * 幼儿园表id
     */
    @ApiModelProperty(value = "幼儿园表id")
    @Excel(name = "幼儿园表id")
    private Long kindergartenId;

    /**
     * 批次编号
     */
    @ApiModelProperty(value = "批次编号")
    @Excel(name = "批次编号")
    private String batchCode;

    /**
     * 报告编号
     */
    @ApiModelProperty(value = "报告编号")
    @Excel(name = "报告编号")
    private String reportCode;

    /**
     * 报告名称
     */
    @ApiModelProperty(value = "报告名称")
    @Excel(name = "报告名称")
    private String reportName;

    /**
     * 体质综合分析
     */
    @ApiModelProperty(value = "体质综合分析")
    @Excel(name = "体质综合分析")
    private String physicalSynthAnalysis;

    /**
     * 报告下载地址
     */
    @ApiModelProperty(value = "报告下载地址")
    @Excel(name = "报告下载地址")
    private String downloadAddress;

    /**
     * 运动处方库表id，多个用逗号隔开
     */
    @ApiModelProperty(value = "运动处方库表id，多个用逗号隔开")
    @Excel(name = "运动处方库表id，多个用逗号隔开")
    private String motionLibraryId;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    @Excel(name = "审核人")
    private Long checkUserId;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;

    /**
     * 0：未审核，1：已审核
     */
    @ApiModelProperty(value = "0：未审核，1：已审核")
    @Excel(name = "0：未审核，1：已审核")
    @NotNull(message = "请选择审核状态", groups = {Update.class})
    private Integer checkStatus;

    /**
     * 是否删除，0：否，1：是
     */
    private Integer delFlag;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("kindergartenId", getKindergartenId())
                .append("batchCode", getBatchCode())
                .append("reportCode", getReportCode())
                .append("reportName", getReportName())
                .append("physicalSynthAnalysis", getPhysicalSynthAnalysis())
                .append("downloadAddress", getDownloadAddress())
                .append("motionLibraryId", getMotionLibraryId())
                .append("checkUserId", getCheckUserId())
                .append("checkTime", getCheckTime())
                .append("checkStatus", getCheckStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
