张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
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
package com.thhy.materials.modules.biz.spare.entity;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thhy.general.annotations.Excel;
import com.thhy.general.annotations.Idkey;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
public class SpareListVo implements Serializable {
 
    /**
     * 备件
     */
 
    @Idkey
    private String spareId;
 
 
    /**
     * 备件编号
     */
 
    @Excel(sort = 1,title = "备件编号")
    private String spareNum;
 
    @Excel(sort = 2,title = "备件名称")
    private String spareName;
 
    /**
     * 型号  字典
     */
 
    @Excel(sort = 3,title = "规格型号")
    private String model;
 
    /**
     * 类型 字典
     */
 
 
    private String spareType;
 
    @Excel(sort = 4,title = "类型")
    private String spareTypeName;
 
    /**
     * 状态 1shiyong 2wei 3zuofei
     */
 
 
    private Integer spareStatus;
 
    @Excel(sort = 5,title = "备件状态",dict = true)
    private String spareStatusName;
 
    public String getSpareStatusName() {
        if(spareStatus==1)return "使用中";
        if(spareStatus==2)return "未使用";
        if(spareStatus==3)return "作废";
        return "";
    }
 
    /**
     * 备件管理员
     */
 
 
    private String spareAdmin;
 
    /**
     * 备注
     */
 
    @Excel(sort = 7,title = "备注")
    private String remark;
 
    /**
     * 创建时间
     */
 
 
    private Date createTime;
 
    /**
     * 创建用户
     */
 
 
    private String createUser;
 
 
 
    private Date updateTime;
 
 
 
    private String updateUser;
 
    @Excel(sort = 6,title = "负责人",dict = true)
    private String spareAdminName;
 
    @JsonIgnore
    @Excel(title = "序号",seq = true,sort = 0)
    private Integer seq;
}