自动化立体仓库 - WMS系统
zyx
2024-04-24 9d2d63ee09e8bcf494fc3fd14a48d82731fac9ef
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
 
@Data
@TableName("asr_app_version")
public class AppVersion implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 版本号
     */
    @ApiModelProperty(value= "版本号")
    private String version;
 
    /**
     * app路径
     */
    @ApiModelProperty(value= "app路径")
    private String path;
 
    /**
     * 是否为最新版本 0: 不是  1: 是  
     */
    @ApiModelProperty(value= "是否为最新版本 0: 否  1: 是  ")
    private Integer latest;
 
    /**
     * app类型 0: pad  1: 电视  
     */
    @ApiModelProperty(value= "app类型 0: pda  1: lcd  ")
    private Integer type;
 
    public AppVersion() {}
 
    public AppVersion(String version, String path, Integer latest, Integer type) {
        this.version = version;
        this.path = path;
        this.latest = latest;
        this.type = type;
    }
 
//    AppVersion appVersion = new AppVersion(
//            null,    // 版本号
//            null,    // app路径
//            null,    // 是否为最新版本
//            null    // app类型
//    );
 
    public String getLatest$(){
        if (null == this.latest){ return null; }
        switch (this.latest){
            case 0:
                return "否";
            case 1:
                return "是";
            default:
                return String.valueOf(this.latest);
        }
    }
 
    public String getType$(){
        if (null == this.type){ return null; }
        switch (this.type){
            case 0:
                return "pda";
            case 1:
                return "lcd";
            default:
                return String.valueOf(this.type);
        }
    }
 
 
}