自动化立体仓库 - WMS系统
LSH
2023-01-04 459455673c8ffef5ad1cd73eccc3ddb76a42d567
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
package com.zy.ints.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
 
@Data
@TableName("erp_det_tb")
public class ErpDetTb implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 单据号码
     */
    @ApiModelProperty(value = "单据号码")
    @TableId(value = "bill_no", type = IdType.INPUT)
    @TableField("bill_no")
    private String billNo;
 
    /**
     * 品号
     */
    @ApiModelProperty(value = "品号")
    @TableId(value = "prd_no", type = IdType.INPUT)
    @TableField("prd_no")
    private String prdNo;
 
    /**
     * 单据类别
     */
    @ApiModelProperty(value = "单据类别:" +
            "TF_PSS:采购销售\n" +
            "TF_IC:库存调拨\n" +
            "TF_IJ:库存调整\n" +
            "TF_ML:生产领料\n" +
            "TF_MM0:生产缴库\n" +
            "TF_TC:托工退回")
    private String iokindid;
 
    /**
     * 增减符号:1(加,入库)、2(减,出库)
     */
    @ApiModelProperty(value = "增减符号:1(加,入库)、2(减,出库)")
    @TableField("add_id")
    private String addId;
 
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Double qty;
 
    /**
     * 货品特征
     */
    @ApiModelProperty(value = "货品特征")
    @TableId(value = "prd_mark", type = IdType.INPUT)
    @TableField("prd_mark")
    private String prdMark;
 
    /**
     * 仓库
     */
    @ApiModelProperty(value = "仓库")
    private String wh;
 
    /**
     * 日期
     */
    @ApiModelProperty(value = "日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date billdate;
 
    /**
     * 状态:0(初始状态)、1(已接收)、2(异常)
     */
    @ApiModelProperty(value = "状态:0(初始状态)、1(已接收)、2(异常)")
    private Integer status;
 
    /**
     * 备用字段1
     */
    @ApiModelProperty(value = "备用字段1")
    private String temp1;
 
    /**
     * 备用字段2
     */
    @ApiModelProperty(value = "备用字段2")
    private String temp2;
 
    /**
     * 备用字段3
     */
    @ApiModelProperty(value = "备用字段3")
    private String temp3;
 
    public ErpDetTb() {
    }
 
    public ErpDetTb(String billNo, String prdNo, String iokindid, String addId, Double qty, String prdMark, String wh, Date billdate, Integer status, String temp1, String temp2, String temp3) {
        this.billNo = billNo;
        this.prdNo = prdNo;
        this.iokindid = iokindid;
        this.addId = addId;
        this.qty = qty;
        this.prdMark = prdMark;
        this.wh = wh;
        this.billdate = billdate;
        this.status = status;
        this.temp1 = temp1;
        this.temp2 = temp2;
        this.temp3 = temp3;
    }
 
//    DetTb detTb = new DetTb(
//            null,    // id[非空]
//            null,    // 单据号码[非空]
//            null,    // 品号[非空]
//            null,    // 单据类别[非空]
//            null,    // 增减符号:1(加,入库)、2(减,出库)[非空]
//            null,    // 数量[非空]
//            null,    // 货品特征[非空]
//            null,    // 仓库
//            null,    // 日期[非空]
//            null,    // 状态:0(初始状态)、1(已接收)、2(异常)[非空]
//            null,    // 备用字段1
//            null,    // 备用字段2
//            null    // 备用字段3
//    );
 
    public String getBilldate$() {
        if (Cools.isEmpty(this.billdate)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.billdate);
    }
 
    public String getIokindid$(){
        if (null == this.iokindid){ return null; }
        switch (this.iokindid){
            case "TF_PSS":
                return "采购销售";
            case "TF_IC":
                return "库存调拨";
            case "TF_IJ":
                return "库存调整";
            case "TF_ML":
                return "生产领料";
            case "TF_MM0":
                return "生产缴库";
            case "TF_TC":
                return "托工退回";
            default:
                return String.valueOf(this.status);
        }
    }
 
}