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
package org.jeecg.modules.dnc.entity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
@NoArgsConstructor
@TableName(value = "nc_process_spec_version")
@Api(value = "工艺规程版本")
public class ProcessSpecVersion implements Serializable {
    private static final long serialVersionUID = 1529244980533421687L;
    //id
    @TableField(value = "id")
    private String id;
    //产品id
    @TableField(value = "product_id")
    private String productId;
    //部件id
    @TableField(value = "component_id")
    private String componentId;
    //零件id
    @TableField(value = "parts_id")
    private String partsId;
    //工艺规程版本号
    @TableField(value = "process_spec_version_code")
    private String processSpecVersionCode;
    //工艺规程名称
    @TableField(value = "process_spec_version_name")
    private String processSpecVersionName;
    //描述
    @TableField(value = "description")
    private String description;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "update_time", fill = FieldFill.INSERT)
    private Date updateTime;
    @JsonIgnore
    @TableField(value = "create_by", select = false, fill = FieldFill.INSERT)
    @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
    private String createBy;
    @JsonIgnore
    @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE)
    @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
    private String updateBy;
    @JsonIgnore
    @TableLogic
    @TableField(value = "delete_flag", select = false)
    private Integer deleteFlag = 0;
    //创建人
    private transient String createName;
    //更新人
    private transient String updateName;
 
}