自动化立体仓库 - WMS系统
skyouc
4 小时以前 f6e687c194354f1c0b883b5ac56da3a8e70db471
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField;
 
import com.core.common.SpringUtils;
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;
 
    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 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    // 库位码[非空]
//    );
 
 
}