自动化立体仓库 - WMS系统
#
whycq
2025-01-08 d3cb0e841e6585aa84a45f18bb30965db8d1a6aa
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
package com.zy.asrs.entity;
 
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("man_bom_mat")
public class BomMat implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Long id;
 
    /**
     * 部件品号
     */
    @ApiModelProperty(value= "部件品号")
    @TableField("unit_num")
    @ExcelProperty(value = "部件品号")
    private String unitNum;
 
    /**
     * 部件品名
     */
    @ApiModelProperty(value= "部件品名")
    @TableField("unit_name")
    @ExcelProperty(value = "部件品名")
    private String unitName;
 
    /**
     * 部件规格
     */
    @ApiModelProperty(value= "部件规格")
    @TableField("unit_space")
    @ExcelProperty(value = "部件规格")
    private String unitSpace;
 
    /**
     * 组件品号
     */
    @ApiModelProperty(value= "组件品号")
    @TableField("bom_num")
    @ExcelProperty(value = "组件品号")
    private String bomNum;
 
    /**
     * 组件品名
     */
    @ApiModelProperty(value= "组件品名")
    @TableField("bom_name")
    @ExcelProperty(value = "组件品名")
    private String bomName;
 
    /**
     * 组件规格
     */
    @ApiModelProperty(value= "组件规格")
    @TableField("bom_space")
    @ExcelProperty(value = "组件规格")
    private String bomSpace;
 
    /**
     * 元件品号
     */
    @ApiModelProperty(value= "元件品号")
    @TableField("element_num")
    @ExcelProperty(value = "元件品号")
    private String elementNum;
 
    /**
     * 元件品名
     */
    @ApiModelProperty(value= "元件品名")
    @TableField("element_name")
    @ExcelProperty(value = "元件品名")
    private String elementName;
 
    /**
     * 元件规格
     */
    @ApiModelProperty(value= "元件规格")
    @TableField("element_space")
    @ExcelProperty(value = "元件规格")
    private String elementSpace;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    @ExcelProperty(value = "备注")
    private String memo;
 
    /**
     * 套数
     */
    @ApiModelProperty(value= "套数")
    @TableField("bom_count")
    @ExcelProperty(value = "套数")
    private Double bomCount;
 
    /**
     * 组成用量
     */
    @ApiModelProperty(value= "组成用量")
    @TableField("bom_anfme")
    @ExcelProperty(value = "组成用量")
    private Double bomAnfme;
 
    /**
     * 托盘数量
     */
    @ApiModelProperty(value= "托盘数量")
    @TableField("zpallet_anfme")
    @ExcelProperty(value = "托盘数量")
    @ExcelIgnore
    private Double zpalletAnfme;
 
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("modi_user")
    @ExcelIgnore
    private Long modiUser;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("modi_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private Date modiTime;
 
    /**
     * 添加人员
     */
    @ApiModelProperty(value= "添加人员")
    @TableField("appe_user")
    @ExcelIgnore
    private Long appeUser;
 
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @TableField("appe_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private Date appeTime;
 
    /**
     * 是否删除
     */
    @ApiModelProperty(value= "是否删除")
    @TableField("is_deleted")
    @ExcelIgnore
    private Short isDeleted;
 
    public BomMat() {}
 
    public BomMat(Long id,String unitNum,String unitName,String unitSpace,String bomNum,String bomName,String bomSpace,String elementNum,String elementName,String elementSpace,String memo,Double bomCount,Double bomAnfme,Double zpalletAnfme,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Short isDeleted) {
        this.id = id;
        this.unitNum = unitNum;
        this.unitName = unitName;
        this.unitSpace = unitSpace;
        this.bomNum = bomNum;
        this.bomName = bomName;
        this.bomSpace = bomSpace;
        this.elementNum = elementNum;
        this.elementName = elementName;
        this.elementSpace = elementSpace;
        this.memo = memo;
        this.bomCount = bomCount;
        this.bomAnfme = bomAnfme;
        this.zpalletAnfme = zpalletAnfme;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
        this.isDeleted = isDeleted;
    }
 
//    BomMat bomMat = new BomMat(
//            null,    // ID[非空]
//            null,    // 部件品号
//            null,    // 部件品名
//            null,    // 部件规格
//            null,    // 组件品号
//            null,    // 组件品名
//            null,    // 组件规格
//            null,    // 元件品号
//            null,    // 元件品名
//            null,    // 元件规格
//            null,    // 备注
//            null,    // 套数
//            null,    // 组成用量
//            null,    // 托盘数量
//            null,    // 修改人员
//            null,    // 修改时间
//            null,    // 添加人员
//            null,    // 添加时间
//            null    // 是否删除
//    );
 
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
 
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
 
 
}