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 railway
 */
@Data
@ApiModel("变电所信息")
@EqualsAndHashCode(callSuper = true)
public class BaseSubstation extends BaseEntity {

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

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

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

  @ApiModelProperty(value = "line_id")
  private Long lineId;

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

  @ApiModelProperty(value = "管理工区")
  @Length(min = 1, max = 30, message = "【管理工区】长度必须介于 {min} 和 {max} 之间")
  private String workArea;

  @ApiModelProperty(value = "所亭名称")
  @Length(min = 1, max = 30, message = "【所亭名称】长度必须介于 {min} 和 {max} 之间")
  private String substationName;

  @ApiModelProperty(value = "显示顺序")
  private Integer orderNum;

  @ApiModelProperty(value = "公里标")
  private Integer marker;

  @ApiModelProperty(value = "经度")
  private BigDecimal longitude;

  @ApiModelProperty(value = "纬度")
  private BigDecimal latitude;

  @ApiModelProperty(value = "部门集群")
  @Length(min = 1, max = 64, message = "【部门集群】长度必须介于 {min} 和 {max} 之间")
  private String substationGroup;

  @ApiModelProperty(value = "值班情况")
  @Length(min = 1, max = 64, message = "【值班情况】长度必须介于 {min} 和 {max} 之间")
  private String substationDuty;

  @ApiModelProperty(value = "运行情况")
  @Length(min = 1, max = 64, message = "【运行情况】长度必须介于 {min} 和 {max} 之间")
  private String substationState;

  @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
  @Length(min = 1, max = 1, message = "【删除标志（0代表存在 1代表删除）】长度必须介于 {min} 和 {max} 之间")
  private String delFlag;

}