package org.springblade.modules.traceability.entity;
|
|
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 lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 溯源码表实体类
|
* @since 2022-05-19
|
* @author zhongrj
|
*/
|
@Data
|
@TableName("sys_traceability")
|
public class Traceability implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id",type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 商品名称
|
*/
|
private String productName;
|
|
/**
|
* 联系电话
|
*/
|
private String phone;
|
|
/**
|
* 产地
|
*/
|
private String place;
|
|
|
/**
|
* 合格证编号
|
*/
|
private String certificationCode;
|
|
|
/**
|
* 承诺依据 0:委托检测 1:自我检测 2:内部质量控制 3:自我承诺
|
*/
|
private String according;
|
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 重量
|
*/
|
private String weight;
|
|
/**
|
* 溯源码编号
|
*/
|
private String code;
|
|
/**
|
* 是否绑定溯源(0:已绑定 1:未绑定)
|
*/
|
private String bind;
|
|
/**
|
* 是否打印(0:是 1:否)
|
*/
|
private String print;
|
|
}
|