自动化立体仓库 - WMS系统
#
whycq
2024-11-01 9de70a6856dd8095ba17d04b01a9363782225ae2
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
package com.zy.asrs.entity;
 
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 io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("man_flow_log")
public class FlowLog implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 数据编号
     */
    @ApiModelProperty(value= "数据编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 流水号
     */
    @ApiModelProperty(value= "流水号")
    private String fid;
 
    /**
     * 操作类型
     */
    @ApiModelProperty(value= "操作类型")
    @TableField("op_type")
    private Long opType;
 
    /**
     * 订单号
     */
    @ApiModelProperty(value= "订单号")
    @TableField("order_no")
    private String orderNo;
 
    /**
     * 销售单号
     */
    @ApiModelProperty(value= "销售单号")
    @TableField("three_code")
    private String threeCode;
 
    /**
     * 库位号
     */
    @ApiModelProperty(value= "库位号")
    @TableField("loc_no")
    private String locNo;
 
    /**
     * 物料号
     */
    @ApiModelProperty(value= "物料号")
    private String matnr;
 
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String maktx;
 
    /**
     * 订单数量变更前
     */
    @ApiModelProperty(value= "订单数量变更前")
    @TableField("order_previous")
    private Double orderPrevious;
 
    /**
     * 订单数量变更后
     */
    @ApiModelProperty(value= "订单数量变更后")
    @TableField("order_current")
    private Double orderCurrent;
 
    /**
     * 订单数量变更
     */
    @ApiModelProperty(value= "订单数量变更")
    @TableField("order_changed")
    private Double orderChanged;
 
    /**
     * 作业数量变更前
     */
    @ApiModelProperty(value= "作业数量变更前")
    @TableField("qty_previous")
    private Double qtyPrevious;
 
    /**
     * 作业数量变更后
     */
    @ApiModelProperty(value= "作业数量变更后")
    @TableField("qty_current")
    private Double qtyCurrent;
 
    /**
     * 作业数量变更
     */
    @ApiModelProperty(value= "作业数量变更")
    @TableField("qty_changed")
    private Double qtyChanged;
 
    /**
     * 变更前数量
     */
    @ApiModelProperty(value= "变更前数量")
    @TableField("loc_previous")
    private Double locPrevious;
 
    /**
     * 变更后数量
     */
    @ApiModelProperty(value= "变更后数量")
    @TableField("loc_current")
    private Double locCurrent;
 
    /**
     * 变更值
     */
    @ApiModelProperty(value= "变更值")
    @TableField("loc_changed")
    private Double locChanged;
 
    /**
     * 备用1
     */
    @ApiModelProperty(value= "备用1")
    private String spare1;
 
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    private String spare2;
 
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    private String spare3;
 
    /**
     * 备用4
     */
    @ApiModelProperty(value= "备用4")
    private String spare4;
 
    /**
     * 备用5
     */
    @ApiModelProperty(value= "备用5")
    private String spare5;
 
    /**
     * 操作员
     */
    @ApiModelProperty(value= "操作员")
    @TableField("user_id")
    private Long userId;
 
    /**
     * 更新时间
     */
    @ApiModelProperty(value= "更新时间")
    @TableField("appe_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
 
    public FlowLog() {}
 
    public FlowLog(Long id,String fid,Long opType,String orderNo,String threeCode,String locNo,String matnr,String maktx,Double orderPrevious,Double orderCurrent,Double orderChanged,Double qtyPrevious,Double qtyCurrent,Double qtyChanged,Double locPrevious,Double locCurrent,Double locChanged,String spare1,String spare2,String spare3,String spare4,String spare5,Long userId,Date appeTime) {
        this.id = id;
        this.fid = fid;
        this.opType = opType;
        this.orderNo = orderNo;
        this.threeCode = threeCode;
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.orderPrevious = orderPrevious;
        this.orderCurrent = orderCurrent;
        this.orderChanged = orderChanged;
        this.qtyPrevious = qtyPrevious;
        this.qtyCurrent = qtyCurrent;
        this.qtyChanged = qtyChanged;
        this.locPrevious = locPrevious;
        this.locCurrent = locCurrent;
        this.locChanged = locChanged;
        this.spare1 = spare1;
        this.spare2 = spare2;
        this.spare3 = spare3;
        this.spare4 = spare4;
        this.spare5 = spare5;
        this.userId = userId;
        this.appeTime = appeTime;
    }
 
//    FlowLog flowLog = new FlowLog(
//            null,    // 数据编号[非空]
//            null,    // 流水号
//            null,    // 操作类型
//            null,    // 订单号
//            null,    // 销售单号
//            null,    // 库位号
//            null,    // 物料号
//            null,    // 物料名称
//            null,    // 订单数量变更前
//            null,    // 订单数量变更后
//            null,    // 订单数量变更
//            null,    // 作业数量变更前
//            null,    // 作业数量变更后
//            null,    // 作业数量变更
//            null,    // 变更前数量
//            null,    // 变更后数量
//            null,    // 变更值
//            null,    // 备用1
//            null,    // 备用2
//            null,    // 备用3
//            null,    // 备用4
//            null,    // 备用5
//            null,    // 操作员
//            null    // 更新时间
//    );
 
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
 
    public String getOpType$() {
        String otp = "";
        if (this.opType == 1L) {
            otp = "新增订单";
        } else if (this.opType == 2L) {
            otp = "修改订单";
        } else if (this.opType == 3L) {
            otp = "组托入库";
        } else if (this.opType == 4L) {
            otp = "订单出库";
        } else if (this.opType == 5L) {
            otp = "调拨出库";
        } else if (this.opType == 6L) {
            otp = "加工出库";
        } else if (this.opType == 7L) {
            otp = "取消入库";
        } else if (this.opType == 8L) {
            otp = "取消移库";
        } else if (this.opType == 9L) {
            otp = "取消调拨";
        } else if (this.opType == 101L) {
            otp = "101.入库";
        }
        return otp;
    }
 
 
}