package com.railway.business.catenary.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
/**
 *  检测表-巡视检查记录
 * @author zcf 2021-10-24
 */
@Data
@ApiModel("检测表-巡视检查记录")
@EqualsAndHashCode(callSuper = true)
public class BusJcebXsjcjl extends BusJceb{

    @ApiModelProperty(value = "巡视检查方式")
    private Integer xsjcfs;

    @ApiModelProperty(value = "缺陷地点")
    @Length(min = 1, max = 30, message = "【缺陷地点】长度必须介于 {min} 和 {max} 之间")
    private String qxdd;

    @ApiModelProperty(value = "缺陷内容")
    @Length(min = 1, max = 200, message = "【缺陷内容】长度必须介于 {min} 和 {max} 之间")
    private String qxnr;

    @ApiModelProperty(value = "缺陷等级")
    @Length(min = 1, max = 30, message = "【缺陷等级】长度必须介于 {min} 和 {max} 之间")
    private String qxdj;

    @ApiModelProperty(value = "要求完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date yqwcsj;

    @ApiModelProperty(value = "处理措施 0紧固 1更换")
    @Length(min = 1, max = 1, message = "【处理措施 0紧固 1更换】长度必须介于 {min} 和 {max} 之间")
    private String clcs;

    @ApiModelProperty(value = "处理结果 0紧固 1更换")
    @Length(min = 1, max = 1, message = "【处理结果 0紧固 1更换】长度必须介于 {min} 和 {max} 之间")
    private String cljg;

    @ApiModelProperty(value = "处理缺陷领导人")
    @Length(min = 1, max = 30, message = "【处理缺陷领导人】长度必须介于 {min} 和 {max} 之间")
    private String clqxldr;

    @ApiModelProperty(value = "处理缺陷操作者")
    @Length(max = 30, message = "【处理缺陷操作者】长度必须介于 {min} 和 {max} 之间")
    private String clqxczz;

    @ApiModelProperty(value = "处理日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date clrq;

    @ApiModelProperty(value = "用户id")
    private Long userId;

}