zss
2025-01-13 8d85246f061e3da623c7b9eb4e323ee724b4de0b
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package com.yuanchu.mom.pojo;
 
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuanchu.mom.annotation.ValueTableShow;
import com.yuanchu.mom.common.OrderBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
 
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
 
/**
 * <p>
 *
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2024-09-21 10:53:51
 */
@Getter
@Setter
@TableName("device_borrow")
@ApiModel(value = "DeviceBorrow对象", description = "设备借用")
public class DeviceBorrow extends OrderBy implements Serializable {
 
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;
 
    @ValueTableShow(1)
    @ApiModelProperty("流程编号")
    @ExcelProperty(value = "流程编号")
    private String processNumber;
 
    @ApiModelProperty("设备id")
    @ExcelIgnore
    private Integer deviceId;
 
    @ValueTableShow(3)
    @ApiModelProperty("管理编号")
    @ExcelProperty(value = "管理编号")
    private String unifyNumber;
 
    @ApiModelProperty("借用人")
    @ValueTableShow(4)
    @ExcelProperty(value = "借用人")
    private String recipientUser;
 
    @ValueTableShow(5)
    @ExcelProperty(value = "借用人联系方式")
    @ApiModelProperty("借用人联系方式")
    private String borrowerContactInformation;
 
    @ValueTableShow(6)
    @ApiModelProperty("借用时状态")
    @ExcelProperty(value = "借用时状态")
    //0合格;1维修;2停用;3报废
    private Integer recipientState;
 
    @ValueTableShow(5)
    @ApiModelProperty("借用日期")
    @ExcelProperty(value = "提交日期")
    private Date recipientTime;
 
    @ApiModelProperty("借出人")
    @ValueTableShow(7)
    @ExcelProperty(value = "借出人")
    private String submitUser;
 
    @ValueTableShow(8)
    @ApiModelProperty("借出日期")
    @ExcelProperty(value = "借出日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
 
    @ValueTableShow(9)
    @ApiModelProperty("当前状态")
    @ExcelProperty(value = "当前状态")
    private String nowState;
 
    @ApiModelProperty("当前责任人")
    @ValueTableShow(10)
    @ExcelProperty(value = "当前责任人")
    private String nowUser;
 
    @ExcelIgnore
    @ApiModelProperty("附件")
    //路径
    private String url;
 
    @ValueTableShow(11)
    @ApiModelProperty("附件")
    @ExcelProperty(value = "附件")
    //文件名
    private String fileName;
 
    @ApiModelProperty("下环节责任人")
    @ExcelIgnore
    private String nextUser;
 
    @ApiModelProperty("提交操作人")
    @ExcelIgnore
    private String submitOperationUser;
 
    @ApiModelProperty("提交操作时间")
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitOperationTime;
 
    @ApiModelProperty("归还人")
    @ExcelIgnore
    private String rebackUser;
 
    @ApiModelProperty("归还日期")
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime rebackTime;
 
    @ApiModelProperty("接受状态0合格;1维修;2停用;3报废")
    @ExcelIgnore
    private Integer receiveState;
 
    @ApiModelProperty("设备责任人")
    @ExcelIgnore
    private String deviceUser;
 
    @ApiModelProperty("备注")
    @ExcelIgnore
    private String note;
 
    @ApiModelProperty("接收操作人")
    @ExcelIgnore
    private String receiveOperationUser;
 
    @ApiModelProperty("接收操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private LocalDateTime receiveOperationTime;
 
    @ValueTableShow(2)
    @ApiModelProperty("设备名称")
    @TableField(select = false, exist = false)
    @ExcelProperty(value = "设备名称")
    private String deviceName;
 
 
    @ApiModelProperty("流程跟踪")
    @TableField(select = false, exist = false)
    @ExcelIgnore
    private List<DeviceLog> deviceLogs;
}