Fixiaobai
2023-09-06 8abe275e36823f1065300af45e1f7a9a68f549a7
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
89
90
91
92
93
94
95
package com.yuanchu.limslaboratory.pojo;
 
import com.baomidou.mybatisplus.annotation.*;
 
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * <p>
 *
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2023-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Product对象", description="")
public class Product implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "项目id", hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @ApiModelProperty(value = "项目名称", example = "铝包钢芯铝绞线", required = true)
    private String name;
 
    @ApiModelProperty(value = "项目父类", example = "单位长度质量")
    private String father;
 
    @ApiModelProperty(value = "单位", example = "km")
    private String unit;
 
    @ApiModelProperty(value = "标准值", example = "<=0.3458")
    private String required;
 
    @ApiModelProperty(value = "内控值", example = "<=0.3458")
    private String internal;
 
 
    @ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true)
    private Integer state;
 
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
 
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
 
    @ApiModelProperty(value = "版本", hidden = true)
    private Integer version;
 
    @ApiModelProperty(value = "关联 型号id", example = "1", hidden = true)
    private Integer specifications_id;
 
    public Product() {
    }
 
    public Product(Integer id, String name, String father, String unit, String required, String internal, Integer state, Date createTime, Date updateTime, Integer version, Integer specifications_id) {
        this.id = id;
        this.name = name;
        this.father = father;
        this.unit = unit;
        this.required = required;
        this.internal = internal;
        this.state = state;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.version = version;
        this.specifications_id = specifications_id;
    }
 
    public Product(String name, String father, String unit, Date createTime, Date updateTime, Integer version, Integer specifications_id) {
        this.name = name;
        this.father = father;
        this.unit = unit;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.version = version;
        this.specifications_id = specifications_id;
    }
}