#
luxiaotao1123
2021-04-13 d8f5476af7490d3faf40a7da332155cf06aec5e1
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 zy.cloud.wms.manager.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import io.swagger.annotations.ApiModelProperty;
 
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
 
@TableName("man_cust_order")
public class CustOrder implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 销售单号
     */
    @ApiModelProperty(value= "销售单号")
    private String number;
 
    /**
     * 单据日期
     */
    @ApiModelProperty(value= "单据日期")
    @TableField("bill_date")
    private String billDate;
 
    /**
     * 客户编号
     */
    @ApiModelProperty(value= "客户编号")
    @TableField("bType_id")
    private String bTypeId;
 
    /**
     * 经手人编号
     */
    @ApiModelProperty(value= "经手人编号")
    @TableField("eType_id")
    private String eTypeId;
 
    /**
     * 单据自增ID
     */
    @ApiModelProperty(value= "单据自增ID")
    @TableField("vch_code")
    private Integer vchcode;
 
    /**
     * 商品编号
     */
    @ApiModelProperty(value= "商品编号")
    @TableField("user_code")
    private String userCode;
 
    /**
     * 商品数量
     */
    @ApiModelProperty(value= "商品数量")
    private Double qty;
 
    /**
     * 总数量
     */
    @ApiModelProperty(value= "总数量")
    private Double total;
 
    /**
     * 商品单价
     */
    @ApiModelProperty(value= "商品单价")
    private Double price;
 
    /**
     * 商品单价
     */
    @ApiModelProperty(value= "商品单价")
    @TableField("row_no")
    private Integer rowNo;
 
    /**
     * 商品备注
     */
    @ApiModelProperty(value= "商品备注")
    private String comment;
 
    /**
     * 状态 1: 待处理  2: 已完成  3: 取消  4: 异常  
     */
    @ApiModelProperty(value= "状态 0: 载入中 1: 待处理  2: 未拣货  3: 取消  4: 已完成  5: 准备取消 ")
    private Integer status;
 
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @TableField("create_time")
    private Date createTime;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    private Date updateTime;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    private String memo;
 
    public CustOrder() {}
 
    public CustOrder(String number,String billDate,String bTypeId,String eTypeId,Integer vchcode,String userCode,Double qty,Double total,Double price, Integer rowNo, String comment,Integer status,Date createTime,Date updateTime,String memo) {
        this.number = number;
        this.billDate = billDate;
        this.bTypeId = bTypeId;
        this.eTypeId = eTypeId;
        this.vchcode = vchcode;
        this.userCode = userCode;
        this.qty = qty;
        this.total = total;
        this.price = price;
        this.rowNo = rowNo;
        this.comment = comment;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.memo = memo;
    }
 
//    CustOrder custOrder = new CustOrder(
//            null,    // 销售单号
//            null,    // 单据日期[非空]
//            null,    // 客户编号
//            null,    // 经手人编号[非空]
//            null,    // 商品编号
//            null,    // 商品数量
//            null,    // 商品单价
//            null,    // 商品备注[非空]
//            null,    // 状态
//            null,    // 添加时间
//            null,    // 修改时间
//            null    // 备注
//    );
 
    public String getNumber() {
        return number;
    }
 
    public void setNumber(String number) {
        this.number = number;
    }
 
    public String getBillDate() {
        return billDate;
    }
 
    public void setBillDate(String billDate) {
        this.billDate = billDate;
    }
 
    public String getBTypeId() {
        return bTypeId;
    }
 
    public void setBTypeId(String bTypeId) {
        this.bTypeId = bTypeId;
    }
 
    public String getETypeId() {
        return eTypeId;
    }
 
    public void setETypeId(String eTypeId) {
        this.eTypeId = eTypeId;
    }
 
    public String getUserCode() {
        return userCode;
    }
 
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }
 
    public Double getQty() {
        return qty;
    }
 
    public void setQty(Double qty) {
        this.qty = qty;
    }
 
    public Double getTotal() {
        return total;
    }
 
    public void setTotal(Double total) {
        this.total = total;
    }
 
    public Double getPrice() {
        return price;
    }
 
    public void setPrice(Double price) {
        this.price = price;
    }
 
    public Integer getRowNo() {
        return rowNo;
    }
 
    public void setRowNo(Integer rowNo) {
        this.rowNo = rowNo;
    }
 
    public String getComment() {
        return comment;
    }
 
    public void setComment(String comment) {
        this.comment = comment;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 0:
                return "载入中";
            case 1:
                return "待处理";
            case 2:
                return "未拣货";
            case 3:
                return "取消";
            case 4:
                return "已完成";
            case 5:
                return "准备取消";
            default:
                return String.valueOf(this.status);
        }
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    public String getMemo() {
        return memo;
    }
 
    public void setMemo(String memo) {
        this.memo = memo;
    }
 
    public Integer getVchcode() {
        return vchcode;
    }
 
    public void setVchcode(Integer vchcode) {
        this.vchcode = vchcode;
    }
}