package cn.estsh.i3plus.pojo.andon.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author wangjie
 * @date 2020/2/12 17:41
 * @desc
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "ANDON_ROUTE_STATUS_ERROR_RECORD")
@EqualsAndHashCode(callSuper = true)
@Api("流程状态异常记录")
public class AndonRouteStatusErrorRecord extends BaseBean implements Serializable {

    private static final long serialVersionUID = -4046192879130584866L;

    @Column(name = "ROUTE_CODE")
    @ApiParam("流程代码")
    private String routeCode;

    @Column(name = "STATUS_CODE")
    @ApiParam("状态代码")
    private String statusCode;

    @Column(name = "ANDON_ORDER_NO")
    @ApiParam(value = "安灯队列编号")
    public String andonOrderNo;

    @Column(name = "ERROR_DESC")
    @ApiParam(value = "异常描述")
    public String errorDesc;

    @Column(name = "WORK_CENTER_CODE")
    @ApiParam(value = "工作中心")
    public String workCenterCode;

    @Column(name = "WORK_CELL_CODE")
    @ApiParam(value = "工作单元")
    public String workCellCode;

    @Column(name = "ALARM_CODE")
    @ApiParam(value = "安灯类型")
    public String alarmCode;

    @Column(name = "SOURCE_TYPE")
    @ApiParam(value = "安灯来源类型")
    private String sourceType;

    @Column(name = "CACHE_KEY")
    @ApiParam(value = "缓存KEY")
    private String cacheKey;

    @Column(name = "HANDLE_STATUS")
    @ApiParam(value = "处理状态")
    private Integer handleStatus;

}
