package cn.estsh.i3plus.ext.mes.pojo.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.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description:
 * @Author: wangjie
 * @Date: 2021/01/14 20:03
 * @Modify:
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_DAILY_CHECK_CONFIRM_RECORD", indexes = {
        @Index(columnList = "ORDER_TYPE"),
        @Index(columnList = "EQU_NO"),
        @Index(columnList = "WORK_CENTER_CODE"),
        @Index(columnList = "WORK_TIME"),
        @Index(columnList = "SHIFT_CODE"),
        @Index(columnList = "LEVEL")
})
@Api("MES_日常点检报表确认记录")
public class MesDailyCheckConfirmRecord extends BaseBean implements Serializable {

    private static final long serialVersionUID = 4334034307450582537L;

    @Column(name = "SYSTEM_SYNC_STATUS")
    @ColumnDefault("2")
    @ApiParam(value = "系统同步标志")
    public Integer systemSyncStatus = 2;

    @Column(name = "ORDER_TYPE")
    @ApiParam(value = "单据类型")
    public Integer orderType;

    @Column(name = "EQU_NO")
    @ApiParam("设备编号")
    private String equNo;

    @Column(name = "WORK_CENTER_CODE")
    @ApiParam("工作中心代码")
    private String workCenterCode;

    @Column(name = "WORK_TIME")
    @ApiParam("作业时间(年月)")
    private String workTime;

    @Column(name = "SHIFT_CODE")
    @ApiParam("班次代码")
    private String shiftCode;

    @Column(name = "LEVEL")
    @ApiParam("级别")
    private String level;

    @Column(name = "CONFIRM_DATE_TIME")
    @ApiParam("确认日期")
    private String confirmDatetime;

}
