package com.shkj.wms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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 java.io.Serializable;
import java.util.Date;

/**
 * 第三方请求异常对象 sys_third_exception_request
 *
 * @author lch
 * @date 2023-02-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_third_exception_request")
public class SysThirdExceptionRequest implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "${comment}", width = 15)
    private Long id;


    /**
     * 任务编号
     */
    @Excel(name = "编号", width = 20)
    private String code;

    /**
     * 任务id
     */
    private Long taskId;


    /**
     * 订单编号
     */
    private String orderNo;


    /**
     * 类型 重新执行时所判断的
     */
    @Excel(name = "类型", width = 20)
    private String type;

    /**
     * 状态
     */
    private String status;


    /**
     * 请求信息json
     */
    @Excel(name = "请求信息json", width = 20)
    private String requestBody;


    /**
     * 返回信息json
     */
    @Excel(name = "返回信息json", width = 20)
    private String responseBody;


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


    /**
     * 创建人
     */
//    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建人", width = 20)
    private String createBy;


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


    /**
     * 修改人
     */
//    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "修改人", width = 20)
    private String updateBy;


    /**
     * 计划执行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date planTime;

    /**
     * 出入库楼层
     */
    private Integer layer;

}
