package com.ruoyi.wms.po;

import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import io.swagger.annotations.ApiParam;

@Data
@Entity
@Table(name = "station_info")
public class StationInfo implements Serializable {

  /**
   * id
   */
  @Id
  @GeneratedValue(strategy=GenerationType.IDENTITY)
  @Column(name = "id")
  @ApiParam(value = "id")
  private Long id;

  /**
   * 工位编码
   */
  @Column(name = "station_code")
  @ApiParam(value = "工位编码")
  private String stationCode;

  /**
   * 对应地码
   */
  @Column(name = "store_code")
  @ApiParam(value = "对应地码")
  private String storeCode;

  /**
   * 工位类型：
   5-入库工位
   10-出库工位
   15-缓存库位(待检区)
   20-检验库位
   25-抽检库位
   30-成品缓存库位
   35-成品出库库位
   40-空车回库库位
   13-工作台
   */
  @Column(name = "station_type")
  @ApiParam(value = "工位类型：5-入库工位10-出库工位15-校验工位20-抽检工位25-发货库位")
  private Integer stationType;

  /**
   * 工位名称
   */
  @Column(name = "station_name")
  @ApiParam(value = "工位名称")
  private String stationName;

  /**
   * 工位状态(5-空闲(默认)、10-作业中、15-停止作业、20-作业完成)
   */
  @Column(name = "station_status")
  @ApiParam(value = "工位状态(5-空闲(默认)、10-作业中、15-停止作业、20-作业完成)")
  private Integer stationStatus;

  /**
   * 工位子编码
   */
  @Column(name = "station_subnumber")
  @ApiParam(value = "工位子编码")
  private String stationSubnumber;

  /**
   * 生产任务单
   */
  @Column(name = "production_task")
  @ApiParam(value = "生产任务单")
  private String productionTask;

  /**
   * 创建人
   */
  @Column(name = "created_by")
  @ApiParam(value = "创建人")
  private String createdBy;

  /**
   * 创建时间
   */
  @Column(name = "created_dt")
  @ApiParam(value = "创建时间")
  private String createdDt;

  /**
   * 更新人
   */
  @Column(name = "updated_by")
  @ApiParam(value = "更新人")
  private String updatedBy;

  /**
   * 更新时间
   */
  @Column(name = "updated_dt")
  @ApiParam(value = "更新时间")
  private String updatedDt;

  @Transient
  @ApiParam("排序")
  private String[] orders;

  @Transient
  @ApiParam("状态集合")
  private Integer[] stationStatusArr;

  @Transient
  @ApiParam("类型集合")
  private Integer[] stationTypeArr;

}
