package com.shkj.wms.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shkj.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备异常记录对象 busin_data_task_errmsg
 * 
 * @author zjx
 * @date 2023-08-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("busin_data_task_errmsg")
public class BusinDataTaskErrmsg implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskCode;

    @Excel(name = "任务类型")
    private String taskType;

    /** 异常内容 */
    @Excel(name = "异常内容")
    private String errMsg;

    /**  任务路径 */
    @Excel(name = " 任务路径")
    private String taskPath;

    /** 异常时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "异常时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date errTime;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long devId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String devCode;

    /** 设备类型：AGV、堆垛机、输送线、机械手 */
    @Excel(name = "设备类型：AGV、堆垛机、输送线、机械手")
    private String devType;

    /** $column.columnComment */
    @Excel(name = "备注")
    private String distinction;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
