package com.ruoyi.quality.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
|
/**
|
* 质量管理--不合格品管理
|
* quality_unqualified
|
*/
|
@TableName(value = "quality_unqualified")
|
@Data
|
public class QualityUnqualified implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 序号
|
*/
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
|
|
/**
|
* 类别(0:原材料检验;1:过程检验;2:出厂检验)
|
*/
|
@NotBlank(message = "类别不能为空!!!")
|
@Excel(name = "类别",readConverterExp = "0=原材料检验,1=过程检验,2=出厂检验")
|
private Integer inspectType;
|
|
/**
|
* 状态(0:待处理;1:已处理)
|
*/
|
@NotBlank(message = "状态不能为空!!")
|
@Excel(name = "状态",readConverterExp = "0=待处理,1=已处理")
|
private Integer inspectState;
|
|
/**
|
* 检测日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date checkTime;
|
|
/**
|
* 检验员
|
*/
|
@Excel(name = "检验员")
|
private String checkName;
|
|
/**
|
* 产品名称
|
*/
|
@Excel(name = "产品名称")
|
private String productName;
|
|
/**
|
* 规格型号
|
*/
|
@Excel(name = "规格型号")
|
private String model;
|
|
/**
|
* 单位
|
*/
|
@Excel(name = "单位")
|
private String unit;
|
|
/**
|
* 数量
|
*/
|
@Excel(name = "数量")
|
private BigDecimal quantity;
|
|
/**
|
* 不合格现象
|
*/
|
@Excel(name = "不合格现象")
|
private String defectivePhenomena;
|
|
/**
|
* 处理结果
|
*/
|
@Excel(name = "处理结果")
|
private String dealResult;
|
|
/**
|
* 处理人
|
*/
|
@Excel(name = "处理人")
|
private String dealName;
|
|
/**
|
* 处理日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "处理日期", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date dealTime;
|
|
|
|
@ApiModelProperty(value = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
@ApiModelProperty(value = "创建用户")
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
@ApiModelProperty(value = "修改时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
@ApiModelProperty(value = "修改用户")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
@ApiModelProperty(value = "租户ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
|
}
|