package com.railway.business.baseinfo.domain;

import com.railway.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
/**
 * 九防台账-防风
 * @author wuhonghao 2021-11-13
 */
@Data
@ApiModel("九防台账-防风")
@EqualsAndHashCode(callSuper = true)
public class BasePreventWind extends BaseEntity{

    @ApiModelProperty(value = "主键", hidden = true)
    private Long id;

    @ApiModelProperty(value = "段别")
    @Length(min = 1, max = 100, message = "【段别】长度必须介于 {min} 和 {max} 之间")
    private String piecewise;

    @ApiModelProperty(value = "段别")
    private String piecewiseText;

    @ApiModelProperty(value = "车间id")
    private Long deptId;

    @ApiModelProperty(value = "车间名称（冗余）")
    @Length(min = 1, max = 30, message = "【车间名称（冗余）】长度必须介于 {min} 和 {max} 之间")
    private String deptName;

    @ApiModelProperty(value = "线路id")
    private Long lineId;

    @ApiModelProperty(value = "线路名称（冗余）")
    @Length(min = 1, max = 30, message = "【线路名称（冗余）】长度必须介于 {min} 和 {max} 之间")
    private String lineName;

    @ApiModelProperty(value = "行别")
    @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间")
    private String xingbie;

    @ApiModelProperty(value = "行别")
    private String xingbieText;

    @ApiModelProperty(value = "区间站场id")
    private Long stationId;

    @ApiModelProperty(value = "区间站场名称")
    @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
    private String stationName;

    @ApiModelProperty(value = "车间-区间站场关联id")
    private Long deptStationId;

    @ApiModelProperty(value = "支柱号")
    @Length(min = 1, max = 10, message = "【支柱号】长度必须介于 {min} 和 {max} 之间")
    private String pillarCode;

    @ApiModelProperty(value = "公里标（m）")
    @Length(min = 1, max = 20, message = "【公里标（m）】长度必须介于 {min} 和 {max} 之间")
    private String marker;

    @ApiModelProperty(value = "开始公里标")
    private BigDecimal startMarker;

    @ApiModelProperty(value = "结束公里标")
    private BigDecimal endMarker;

    @ApiModelProperty(value = "风险源（易搭窝部位）")
    @Length(min = 1, max = 100, message = "【风险源（易搭窝部位）】长度必须介于 {min} 和 {max} 之间")
    private String riskSource;

    @ApiModelProperty(value = "采取措施")
    @Length(min = 1, max = 255, message = "【采取措施】长度必须介于 {min} 和 {max} 之间")
    private String measures;

    @ApiModelProperty(value = "del_flag")
    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
    private String delFlag;

    public BasePreventWind() {
    }

}