package com.railway.business.baseinfo.domain; import com.railway.common.core.domain.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import org.hibernate.validator.constraints.Length; /** * @author railway */ @Data @ApiModel("区间/站场") @EqualsAndHashCode(callSuper = true) public class BusStation extends BaseEntity { @ApiModelProperty(value = "主键", hidden = true) private String stationId; @ApiModelProperty(value = "车间id") private Long deptId; @ApiModelProperty(value = "车间名称(冗余)") private String deptName; @ApiModelProperty(value = "线路id") private Long lineId; @ApiModelProperty(value = "线路名称(冗余)") private String lineName; @ApiModelProperty(value = "行别") @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间") private String xingbie; @ApiModelProperty(value = "行别") private String xingbieText; @ApiModelProperty(value = "区间站场名称") @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间") private String stationName; @ApiModelProperty(value = "区间站场类型") @Length(min = 1, max = 4, message = "【区间站场类型】长度必须介于 {min} 和 {max} 之间") private String stationType; @ApiModelProperty(value = "区间里程") private Integer qjlc; @ApiModelProperty(value = "起始公里标") private Integer startMarker; @ApiModelProperty(value = "结束公里标") private Integer endMarker; @ApiModelProperty(value = "电化股道数") private Integer dhgds; @ApiModelProperty(value = "显示顺序") private Integer orderNum; @ApiModelProperty(value = "删除标志(0代表存在 1代表删除)") @Length(min = 1, max = 1, message = "【删除标志(0代表存在 1代表删除)】长度必须介于 {min} 和 {max} 之间") private String delFlag; }