huminmin
2026-03-20 607e112467e23feb6f3e34d36e302ef6a9c3f7bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author 芯导软件(江苏)有限公司
 * @since 2026-03-13 02:44:09
 */
@Getter
@Setter
@TableName("raw_material")
@ApiModel(value = "原料", description = "")
public class RawMaterial implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty("产品型号id")
    private Long productModelId;
 
    @ApiModelProperty("检验类型 0入厂检 1车间检 2出厂检")
    @Excel(name = "检验类型", readConverterExp = "0=入厂检,1=车间检,2=出厂检")
    private Integer checkType;
 
    @ApiModelProperty("批次号")
    @Excel(name = "批次号")
    private String batchNo;
 
    @ApiModelProperty("检验结果 0合格 1不合格")
    @Excel(name = "检验结果", readConverterExp = "0=不合格,1=合格")
    private Integer checkResult;
 
    @ApiModelProperty("类别(0:未提交;1:已提交)")
    @Excel(name = "提交状态", readConverterExp = "0=未提交,1=已提交")
    private Integer inspectState;
 
    @ApiModelProperty("检验员名称")
    @Excel(name = "检验员")
    private String checkUserName;
 
    @ApiModelProperty("检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;
 
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
 
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
 
 
    @ApiModelProperty(value = "原材料不合格数")
    @TableField(exist = false)
    private BigDecimal supplierNum;
 
    @ApiModelProperty(value = "出厂不合格数")
    @TableField(exist = false)
    private BigDecimal factoryNum;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "过程不合格数")
    private BigDecimal processNum;
 
    @TableField(exist = false)
    private String date;
}