#
Junjie
2024-01-11 901b2ab3e0e7c592602848cfa256f34c5b0c7bb8
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
package com.zy.asrs.common.wms.entity;
 
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.zy.asrs.framework.common.Cools;
import com.zy.asrs.framework.common.SpringUtils;
import com.zy.asrs.common.sys.entity.User;
import com.zy.asrs.common.sys.entity.Host;
import com.zy.asrs.common.sys.service.UserService;
import com.zy.asrs.common.sys.service.HostService;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
@TableName("wms_mat_code")
public class MatCode implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 物料编码
     */
    @ApiModelProperty(value= "物料编码")
    @TableId(value = "mat_no", type = IdType.INPUT)
    private String matNo;
 
    /**
     * 条码
     */
    @ApiModelProperty(value= "条码")
    private String barcode;
 
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String matName;
 
    /**
     * 物料单位
     */
    @ApiModelProperty(value= "物料单位")
    private String str1;
 
    /**
     * 物料规格
     */
    @ApiModelProperty(value= "物料规格")
    private String str2;
 
    @ApiModelProperty(value= "")
    private String str3;
 
    @ApiModelProperty(value= "")
    private String str4;
 
    @ApiModelProperty(value= "")
    private String str5;
 
    @ApiModelProperty(value= "")
    private String str6;
 
    @ApiModelProperty(value= "")
    private String str7;
 
    @ApiModelProperty(value= "")
    private String str8;
 
    @ApiModelProperty(value= "")
    private String str9;
 
    @ApiModelProperty(value= "")
    private String str10;
 
    @ApiModelProperty(value= "")
    private String str11;
 
    @ApiModelProperty(value= "")
    private String str12;
 
    @ApiModelProperty(value= "")
    private String str13;
 
    @ApiModelProperty(value= "")
    private String str14;
 
    @ApiModelProperty(value= "")
    private String str15;
 
    @ApiModelProperty(value= "")
    private String str16;
 
    @ApiModelProperty(value= "")
    private String str17;
 
    @ApiModelProperty(value= "")
    private String str18;
 
    @ApiModelProperty(value= "")
    private String str19;
 
    @ApiModelProperty(value= "")
    private String str20;
 
    @ApiModelProperty(value= "")
    private String str21;
 
    @ApiModelProperty(value= "")
    private String str22;
 
    @ApiModelProperty(value= "")
    private String str23;
 
    @ApiModelProperty(value= "")
    private Double num1;
 
    @ApiModelProperty(value= "")
    private Double num2;
 
    @ApiModelProperty(value= "")
    private Double num3;
 
    @ApiModelProperty(value= "")
    private Double num4;
 
    @ApiModelProperty(value= "")
    private Double num5;
 
    @ApiModelProperty(value= "")
    private Double num6;
 
    @ApiModelProperty(value= "")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date date1;
 
    /**
     * 创建者
     */
    @ApiModelProperty(value= "创建者")
    private Long appeUser;
 
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
 
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    private Long modiUser;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date modiTime;
 
    @ApiModelProperty(value= "")
    private Short status;
 
    public MatCode() {}
 
    public MatCode(String matNo,String barcode,String matName,String str1,String str2,String str3,String str4,String str5,String str6,String str7,String str8,String str9,String str10,String str11,String str12,String str13,String str14,String str15,String str16,String str17,String str18,String str19,String str20,String str21,String str22,String str23,Double num1,Double num2,Double num3,Double num4,Double num5,Double num6,Date date1,Long appeUser,Date appeTime,Long modiUser,Date modiTime,Short status) {
        this.matNo = matNo;
        this.barcode = barcode;
        this.matName = matName;
        this.str1 = str1;
        this.str2 = str2;
        this.str3 = str3;
        this.str4 = str4;
        this.str5 = str5;
        this.str6 = str6;
        this.str7 = str7;
        this.str8 = str8;
        this.str9 = str9;
        this.str10 = str10;
        this.str11 = str11;
        this.str12 = str12;
        this.str13 = str13;
        this.str14 = str14;
        this.str15 = str15;
        this.str16 = str16;
        this.str17 = str17;
        this.str18 = str18;
        this.str19 = str19;
        this.str20 = str20;
        this.str21 = str21;
        this.str22 = str22;
        this.str23 = str23;
        this.num1 = num1;
        this.num2 = num2;
        this.num3 = num3;
        this.num4 = num4;
        this.num5 = num5;
        this.num6 = num6;
        this.date1 = date1;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.status = status;
    }
 
//    MatCode matCode = new MatCode(
//            null,    // 物料编码[非空]
//            null,    // 条码
//            null,    // 物料名称
//            null,    // 物料单位
//            null,    // 物料规格
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 创建者
//            null,    // 添加时间
//            null,    // 修改人员
//            null,    // 修改时间
//            null    // 
//    );
 
    public String getDate1$(){
        if (Cools.isEmpty(this.date1)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.date1);
    }
 
    public String getAppeUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.appeUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
 
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
 
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
 
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
 
 
}