package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 条码配置明细表
 * </p>
 *
 * @author zhangjing
 * @since 2022-10-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_BAR_CODE_ITEMS")
@KeySequence("BD_BAR_CODE_ITEMS_SEQ")
public class BdBarCodeItems extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Long pkId;

    /**
     * 条形码配置主表主键
     */
    @TableField("PK_BAR_CODE")
    private Long pkBarCode;

    /**
     * 条码编号
     */
    @Excel(name = "条码编号")
    @TableField("BAR_CODE")
    private String barCode;

    /**
     * 条码状态 1=已生成 2=已打印 3=已绑定 EBarcodeStatus
     */
    @Transaction(transactionKey = EnumsPrefixConstants.BARCODE_STATUS)
    @TableField("CODE_STATUS")
    private Integer codeStatus;

    /**
     * 打印时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("PRINT_TIME")
    private Date printTime;
    /**
     * 追溯批次
     */
    @Excel(name = "追溯批次")
    @TableField("BATCH")
    private Integer batch;



}
