自动化立体仓库 - WMS系统
1
15 小时以前 dbe87fddc43db7e5486489c3a011cc6474c4701c
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
package com.zy.asrs.entity;
 
import com.core.common.Cools;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 com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_bas_devp_opt")
public class BasDevpOpt implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 任务号
     */
    @ApiModelProperty(value= "任务号")
    @TableField("wrk_no")
    private Integer wrkNo;
 
    /**
     * 下发时间
     */
    @ApiModelProperty(value= "下发时间")
    @TableField("send_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
 
    /**
     * 源站
     */
    @ApiModelProperty(value= "源站")
    @TableField("source_sta")
    private Integer sourceSta;
 
    /**
     * 目标站
     */
    @ApiModelProperty(value= "目标站")
    @TableField("pos_sta")
    private Integer posSta;
 
    /**
     * 响应结果 1: 正常  0: 失败  
     */
    @ApiModelProperty(value= "响应结果 1: 正常  0: 失败  ")
    private Integer response;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    /**
     * 源站有物状态
     */
    @ApiModelProperty(value= "源站有物状态")
    @TableField("source_loading")
    private String sourceLoading;
 
    /**
     * 目标站有物状态
     */
    @ApiModelProperty(value= "目标站有物状态")
    @TableField("pos_loading")
    private String posLoading;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @ApiModelProperty(value= "")
    private String barcode;
 
    @ApiModelProperty(value= "")
    @TableField("front_err")
    private Long frontErr;
 
    @ApiModelProperty(value= "")
    @TableField("back_err")
    private Long backErr;
 
    @ApiModelProperty(value= "")
    @TableField("high_err")
    private Long highErr;
 
    @ApiModelProperty(value= "")
    @TableField("left_err")
    private Long leftErr;
 
    @ApiModelProperty(value= "")
    @TableField("right_err")
    private Long rightErr;
 
    @ApiModelProperty(value= "")
    @TableField("barcode_err")
    private Long barcodeErr;
 
    public BasDevpOpt() {}
 
    public BasDevpOpt(Integer wrkNo,Date sendTime,Integer sourceSta,Integer posSta,Integer response,Date updateTime,String sourceLoading,String posLoading,String barcode,Long frontErr,Long backErr,Long highErr,Long leftErr,Long rightErr,Long barcodeErr) {
        this.wrkNo = wrkNo;
        this.sendTime = sendTime;
        this.sourceSta = sourceSta;
        this.posSta = posSta;
        this.response = response;
        this.updateTime = updateTime;
        this.sourceLoading = sourceLoading;
        this.posLoading = posLoading;
        this.barcode = barcode;
        this.frontErr = frontErr;
        this.backErr = backErr;
        this.highErr = highErr;
        this.leftErr = leftErr;
        this.rightErr = rightErr;
        this.barcodeErr = barcodeErr;
    }
 
//    BasDevpOpt basDevpOpt = new BasDevpOpt(
//            null,    // 任务号
//            null,    // 下发时间
//            null,    // 源站
//            null,    // 目标站
//            null,    // 响应结果
//            null,    // 修改时间
//            null,    // 源站有物状态
//            null,    // 目标站有物状态
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null    // 
//    );
 
    public String getSendTime$(){
        if (Cools.isEmpty(this.sendTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime);
    }
 
    public String getResponse$(){
        if (null == this.response){ return null; }
        switch (this.response){
            case 1:
                return "正常";
            case 0:
                return "失败";
            default:
                return String.valueOf(this.response);
        }
    }
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
 
}