package com.prolog.cs.biz.outbound.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.prolog.framework.core.annotation.Column;
import com.prolog.framework.core.annotation.Id;
import com.prolog.framework.core.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description
 * @Date 2021-03-25
 */
@Data
@ApiModel
@Table( value ="print_log" )
public class PrintLog {

    private static final long serialVersionUID =  3170912106935625403L;
    @Id
    @ApiModelProperty(value = "id")
    @Column(value = "id")
    private String id;

    @ApiModelProperty(value = "出库单号")
    @Column(value = "billno")
    private String billno;

    @ApiModelProperty(value = "打印编码")
    @Column(value = "print_code")
    private String printCode;

    @ApiModelProperty(value = "状态")
    @Column(value = "status")
    private String status;


    @ApiModelProperty(value = "商品id")
    @Column(value = "attr_str1")
    private String attrStr1;

    @ApiModelProperty(value = "批次id")
    @Column(value = "attr_str2")
    private String attrStr2;

    @ApiModelProperty(value = "面单号")
    @Column(value = "attr_str3")
    private String attrStr3;

    @ApiModelProperty(value = "字符扩展属性4")
    @Column(value = "attr_str4")
    private String attrStr4;

    @ApiModelProperty(value = "字符扩展属性5")
    @Column(value = "attr_str5")
    private String attrStr5;

    @ApiModelProperty(value = "录入员")
    @Column(value = "creator")
    private String creator;

    @ApiModelProperty(value = "录入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "gmt_create")
    private Date gmtCreate;

}
