李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/*
 *    Copyright (c) 2018-2025, ztt All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: ztt
 */
 
package com.chinaztt.mes.basic.entity;
 
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * 零件
 *
 * @author fenglang
 * @date 2020-08-17 14:37:35
 */
@Data
@TableName("basic_part")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "零件")
@RequiredArgsConstructor
@NoArgsConstructor
public class Part extends Model<Part> {
    private static final long serialVersionUID = 1L;
 
    /**
     * id
     */
    @TableId
    @ApiModelProperty(value = "id")
    @NonNull
    private Long id;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createUser;
    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateUser;
    /**
     * 零件族Id
     */
    @LinkedField(sourceTable = "basic_part_family", sourceField = "id")
    @ApiModelProperty(value = "零件族Id")
    private Long partFamilyId;
    /**
     * 零件号
     */
    @Unique
    @ApiModelProperty(value = "零件号")
    @NonNull
    private String partNo;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String partName;
    /**
     * 名称
     */
    @ApiModelProperty(value = "检测规则id")
    private Long testRuleId;
    /**
     * 零件类型
     */
    @ApiModelProperty(value = "零件类型")
    private String materialType;
    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;
    /**
     * 单位2
     */
    @ApiModelProperty(value = "单位2")
    private String sunit;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 原先的品类 现在改为 一级分类
     */
    @ApiModelProperty(value = "一级分类")
    private String assortment;
    /**
     * 原先的种类 现在改为 二级分类
     */
    @ApiModelProperty(value = "二级分类")
    private String category;
    /**
     * 三級分類
     */
    @ApiModelProperty(value = "三级分类")
    private String threeLevelClassification;
    /**
     * 规格
     */
    @ApiModelProperty(value = "规格")
    private String specs;
    /**
     * 图号
     */
    @ApiModelProperty(value = "图号")
    private String drawingNumber;
    /**
     * EAN编码
     */
    @ApiModelProperty(value = "EAN编码")
    private String ean;
    /**
     * 电压等级
     */
    @ApiModelProperty(value = "电压等级")
    private String voltageLevel;
    /**
     * 重量
     */
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;
    /**
     * 零件族名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "零件族名称")
    private String partFamilyName;
    /**
     * 是否有效
     */
    @TableLogic
    private Boolean active;
    /**
     * 是系统号管理
     */
    @ApiModelProperty(value = "是否用系统编号管理")
    private Boolean useSystemNo;
    /**
     * IFSs是否启用批次管理 默认是 f
     * f:NOT LOT TRACKING
     * t:LOT TRACKING
     */
    @ApiModelProperty(value = "IFS启用批次管理")
    private Boolean lotTrackingIfs;
    /**
     * 必填字段
     * 版本号 默认是1
     */
    @ApiModelProperty(value = "版本号")
    private String engChgLevel;
    /**
     * 必填字段 默认是A
     * 只有 A,K,P
     * A:计划撤离或批次对批次。最大,最小或倍数数量可覆盖
     * K:低于直通计划。无需附加字段
     * P:虚拟零件计划。无需附加字段
     */
    @ApiModelProperty(value = "计划方法")
    private String planningMethod;
    /**
     * 特性1
     */
    @ApiModelProperty(value = "特性1")
    private String characteristic1;
    /**
     * 特性2
     */
    @ApiModelProperty(value = "特性2")
    private String characteristic2;
    /**
     * 特性3
     */
    @ApiModelProperty(value = "特性3")
    private String characteristic3;
    /**
     * 型号
     */
    @ApiModelProperty(value = "型号")
    private String partModel;
    /**
     * 检验员
     */
    @ApiModelProperty(value = "检验员")
    private String examiner;
 
    /**
     * 零件属性
     */
    @ApiModelProperty(value = "零件属性")
    private String materialAttribute;
 
    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称")
    private String prodName;
 
    /**
     * 节距
     */
    @ApiModelProperty(value = "节距")
    private String partPitch;
 
 
    @ApiModelProperty(value = "是否原材料检")
    private Integer testRuleType;
}