package com.pj.ht_byte;

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

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Model: ht_byte -- 航通基础信息字节码表
 * @author yzs 
 */
@Data
@Accessors(chain = true)
@TableName(HtByte.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
public class HtByte extends Model<HtByte> implements Serializable {
	public HtByte(String messageId, String dataType, String body, String queueName, Integer finishStatus, Date createTime) {
		this.messageId = messageId;
		this.dataType = dataType;
		this.body = body;
		this.queueName = queueName;
		this.finishStatus = finishStatus;
		this.createTime = createTime;
	}

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "ht_byte";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "ht-byte";
	public static final String PERMISSION_CODE_ADD = "ht-byte-add";
	public static final String PERMISSION_CODE_EDIT = "ht-byte-edit";
	public static final String PERMISSION_CODE_DEL = "ht-byte-del";




	// ---------- 表中字段 ----------
	/**
	 * 字节表主键 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;	

	/**
	 * mq消息主键 
	 */
	private String messageId;

	/**
	 *      *      * 001=边民备案
	 *      *      * 002=商铺备案
	 *      *      * 003=边民互助组备案
	 *      *      * 004=边民合作社备案
	 *      *      * 005=车辆
	 *      *      * 006=进境申报单
	 *      *      * 007=进口申报单
	 */
	private String dataType;

	/**
	 * 字节数据主体 
	 */
	private String body;	

	/**
	 * mq队列名称 
	 */
	private String queueName;	

	/**
	 * 完成对象转换状态 
	 */
	private Integer finishStatus;	

	/**
	 * 创建时间 
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;





	


}
