自动化立体仓库 - WMS系统
zyx
2024-03-27 1365b4833632f2d1c5fb346cd700e2e998010db6
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
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 com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_bas_lift")
public class BasLift implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 提升机号
     */
    @ApiModelProperty(value= "提升机号")
    @TableId(value = "lift_no", type = IdType.INPUT)
    @TableField("lift_no")
    private Integer liftNo;
 
    /**
     * 当前任务状态
     */
    @ApiModelProperty(value= "当前任务状态")
    private Integer status;
 
    /**
     * 任务号
     */
    @ApiModelProperty(value= "任务号")
    @TableField("wrk_no")
    private Integer wrkNo;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("update_by")
    private Long updateBy;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    private String memo;
 
    /**
     * 作业标记
     */
    @ApiModelProperty(value= "作业标记")
    @TableField("pak_mk")
    private Integer pakMk;
 
    /**
     * 提升机坐标
     */
    @ApiModelProperty(value= "提升机坐标")
    @TableField("point")
    private String point;
 
    /**
     * 模式
     */
    @ApiModelProperty(value= "模式")
    @TableField("model")
    private Boolean model;
 
    /**
     * 忙闲
     */
    @ApiModelProperty(value= "忙闲")
    @TableField("busy")
    private Boolean busy;
 
    /**
     * 前超限
     */
    @ApiModelProperty(value= "前超限")
    @TableField("front_overrun")
    private Boolean frontOverrun;
 
    /**
     * 后超限
     */
    @ApiModelProperty(value= "后超限")
    @TableField("back_overrun")
    private Boolean backOverrun;
 
    /**
     * 左超限
     */
    @ApiModelProperty(value= "左超限")
    @TableField("left_overrun")
    private Boolean leftOverrun;
 
    /**
     * 右超限
     */
    @ApiModelProperty(value= "右超限")
    @TableField("right_overrun")
    private Boolean rightOverrun;
 
    /**
     * 超高
     */
    @ApiModelProperty(value= "超高")
    @TableField("over_height")
    private Boolean overHeight;
 
    /**
     * 超重
     */
    @ApiModelProperty(value= "超重")
    @TableField("over_weight")
    private Boolean overWeight;
 
    /**
     * 有托盘
     */
    @ApiModelProperty(value= "有托盘")
    @TableField("has_tray")
    private Boolean hasTray;
 
    /**
     * 有小车
     */
    @ApiModelProperty(value= "有小车")
    @TableField("has_car")
    private Boolean hasCar;
 
    /**
     * 设备故障
     */
    @ApiModelProperty(value= "设备故障")
    @TableField("device_error")
    private Boolean deviceError;
 
    /**
     * 任务地址
     */
    @ApiModelProperty(value= "任务地址")
    @TableField("task_address")
    private Integer taskAddress;
 
    /**
     * 目的地址
     */
    @ApiModelProperty(value= "目的地址")
    @TableField("dist_address")
    private Integer distAddress;
 
    /**
     * 已完成任务号
     */
    @ApiModelProperty(value= "已完成任务号")
    @TableField("complete_task_no")
    private Integer completeTaskNo;
 
    /**
     * 楼层
     */
    @ApiModelProperty(value= "楼层")
    @TableField("lev")
    private Integer lev;
 
    public BasLift() {}
 
    public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Integer pakMk, String point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) {
        this.liftNo = liftNo;
        this.status = status;
        this.wrkNo = wrkNo;
        this.updateTime = updateTime;
        this.updateBy = updateBy;
        this.memo = memo;
        this.pakMk = pakMk;
        this.point = point;
        this.model = model;
        this.busy = busy;
        this.frontOverrun = frontOverrun;
        this.backOverrun = backOverrun;
        this.leftOverrun = leftOverrun;
        this.rightOverrun = rightOverrun;
        this.overHeight = overHeight;
        this.overWeight = overWeight;
        this.hasTray = hasTray;
        this.hasCar = hasCar;
        this.deviceError = deviceError;
        this.taskAddress = taskAddress;
        this.distAddress = distAddress;
        this.completeTaskNo = completeTaskNo;
        this.lev = lev;
    }
 
    //    BasLift basLift = new BasLift(
//            null,    // 提升机号[非空]
//            null,    // 当前任务状态
//            null,    // 任务号
//            null,    // 修改时间
//            null,    // 修改人员
//            null,    // 备注
//            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    // 提升机实际速度反馈
//    );
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.updateBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
 
    public String getPakMk$() {
        if (Cools.isEmpty(this.pakMk)){
            return "";
        }
        return this.pakMk == 1 ? "Y" : "N";
    }
 
}