jiazx0107@163.com
2023-05-31 607e62cd6ec91d53bac549299d986c23e5143d28
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
package com.ld.igds.data;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.models.Depot;
import lombok.Data;
 
import javax.persistence.Column;
import javax.persistence.Id;
 
/**
 * @Desc: 用于作为下拉框的数据封装,只包含基础信息
 * @author: andy.jia
 * @update-time: 2023/5/29 11:58
 */
@Data
public class SimpleDepot {
 
    @PropertyDef(label = "货位编号")
    private String id;
 
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @PropertyDef(label = "所属分库")
    private String deptId;
 
    @PropertyDef(label = "货位名称")
    private String name;
 
    @PropertyDef(label = "所属仓房")
    private String buildingId;
 
    @PropertyDef(label = "所属廒间")
    private String granaryId;
 
    @PropertyDef(label = "仓库类型", description = "根据国标配置类型,平房仓、立筒仓、浅圆仓、储油罐")
    private String depotType;
 
    @PropertyDef(label = "仓库状态", description = "与库存表关联,通过库存变更")
    private String depotStatus;
 
 
    public SimpleDepot() {
    }
 
    public SimpleDepot(String id, String companyId, String deptId, String name, String buildingId, String granaryId, String depotType, String depotStatus) {
        this.id = id;
        this.companyId = companyId;
        this.deptId = deptId;
        this.name = name;
        this.buildingId = buildingId;
        this.granaryId = granaryId;
        this.depotType = depotType;
        this.depotStatus = depotStatus;
    }
 
    public SimpleDepot(Depot depot) {
        this.id = depot.getId();
        this.companyId = depot.getCompanyId();
        this.deptId = depot.getDeptId();
        this.name = depot.getName();
        this.buildingId = depot.getBuildingId();
        this.granaryId = depot.getGranaryId();
        this.depotType = depot.getDepotType();
        this.depotStatus = depot.getDepotStatus();
    }
 
}