自动化立体仓库 - WMS系统
#
Administrator
10 小时以前 6a9275fe27d5291d3ea8063bcc3712dde42fe8e7
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField;
 
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasDeviceService;
import com.zy.asrs.service.BasLocStsService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_loc_around_bind")
public class LocAroundBind implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 机台ID
     */
    @ApiModelProperty(value= "机台ID")
    @TableField("dev_id")
    private Long devId;
 
    /**
     * 机台号
     */
    @ApiModelProperty(value= "机台号")
    @TableField("dev_no")
    private String devNo;
 
    /**
     * 库位ID
     */
    @ApiModelProperty(value= "库位ID")
    @TableField("b_loc_id")
    private Long bLocId;
 
    /**
     * 库位码
     */
    @ApiModelProperty(value= "库位码")
    @TableField("b_loc_no")
    private String blocNo;
 
    @ApiModelProperty("是否默认")
    @TableField("is_default")
    private Integer isDefault;
 
    @ApiModelProperty("工位状态")
    @TableField("loc_type")
    private String locType;
 
    @ApiModelProperty("机台名称")
    @TableField("dev_name")
    private String devName;
 
    @ApiModelProperty("机台顺序")
    @TableField("order_no")
    private Integer orderNo;
 
    @ApiModelProperty("是否冻结")
    @TableField("freeze")
    private Integer freeze;
 
    public LocAroundBind() {}
 
    public LocAroundBind(Long devId,String devNo,Long bLocId,String blocNo) {
        this.devId = devId;
        this.devNo = devNo;
        this.bLocId = bLocId;
        this.blocNo = blocNo;
    }
 
    public String getDef$() {
        if (this.isDefault == 0) {
            return "备用";
        } else {
            return "默认";
        }
    }
    public String getDevNo$() {
        BasDeviceService bean = SpringUtils.getBean(BasDeviceService.class);
        BasDevice type = bean.selectOne(new EntityWrapper<BasDevice>().eq("type", devNo));
        if (type == null) {
            return "<UNK>";
        }else {
            return type.getDevNo();
        }
    }
 
    public String getLocType$() {
        if (this.locType == null) {
            return null;
        }
        BasLocStsService service = SpringUtils.getBean(BasLocStsService.class);
        BasLocSts basLocSts = service.selectById(this.locType);
        if (!Cools.isEmpty(basLocSts)){
            return String.valueOf(basLocSts.getLocDesc());
        }
        return null;
 
    }
 
//    LocAroundBind locAroundBind = new LocAroundBind(
//            null,    // 机台ID[非空]
//            null,    // 机台号[非空]
//            null,    // 库位ID[非空]
//            null    // 库位码[非空]
//    );
 
 
    public LocAroundBind(Long devId, String devNo, String blocNo, String locType, int orderNo) {
        this.devId = devId;
        this.devNo = devNo;
        this.blocNo = blocNo;
        this.locType = locType;
        this.orderNo = orderNo;
    }
}