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
96
97
98
99
100
101
102
103
104
105
106
107
108
package org.jeecg.modules.dnc.entity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
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 org.jeecgframework.poi.excel.annotation.Excel;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
@NoArgsConstructor
@TableName(value = "nc_cutter")
@Api(value = "刀具")
public class Cutter implements Serializable {
    private static final long serialVersionUID = 1529244980533421687L;
 
    private String id;
 
    //工序或工步id
    @Excel(name = "所属业务id", width = 15)
    @TableField(value = "attribution_id")
    private String attributionId;
 
    //工序/工步  5工序 6工步
    @Excel(name = "所属类型", width = 15)
    @TableField(value = "attribution_type")
    private Integer attributionType;
 
    //对应文档id
    @Excel(name = "对应文档id", width = 15)
    @TableField(value = "doc_id")
    private String docId;
 
    //对应刀具库id
    @Excel(name = "对应刀具库id", width = 15)
    @TableField(value = "tools_id")
    private String toolsId;
 
    //刀具名称
    @Excel(name = "刀具名称", width = 15)
    @TableField(value = "cutter_name")
    private String cutterName;
 
    //刀具编号
    @Excel(name = "刀具编号", width = 15)
    @TableField(value = "cutter_code")
    private String cutterCode;
 
    //刀具简称
    @Excel(name = "刀具简称", width = 15,dicCode = "cutter_type")
    @TableField(value = "cutter_type")
    @Dict(dicCode = "cutter_type")
    private String cutterType;
 
    //额定寿命
    @Excel(name = "额定寿命", width = 15)
    @TableField(value = "lifetime")
    private String lifetime;
 
    //刀位
    @Excel(name = "刀位", width = 15)
    @TableField(value = "cutter_spacing")
    private String cutterSpacing;
 
    //数量
    @Excel(name = "数量", width = 15)
    @TableField(value = "quantity")
    private Integer quantity;
 
    //刀具规格
    @Excel(name = "刀具规格", width = 15)
    @TableField(value = "cutter_spec")
    private String cutterSpec;
 
    //描述
    @Excel(name = "描述", width = 15)
    @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
    @TableField(value = "delete_flag", select = false)
    private Integer deleteFlag = 0;
}