mitao
2024-12-30 3115d589ca3faaecda604e2a66fe193a93ba9cbc
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
package com.sinata.system.domain.vo;
 
import cn.idev.excel.annotation.ExcelProperty;
import com.sinata.system.annotation.FastExcel;
import com.sinata.system.conveter.EConverter;
import com.sinata.system.enums.WarningStatusEnum;
import com.sinata.system.enums.WarningTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.util.Date;
 
/**
 * @author mitao
 * @date 2024/12/30
 */
@Data
@ApiModel("预警信息视图对象")
public class MwWarningRecordVO {
 
    @ApiModelProperty("预警记录id")
    private Long id;
 
    @ApiModelProperty("预警时间")
    @ExcelProperty(value = "预警时间", index = 1)
    private Date warnTime;
 
    @ApiModelProperty("预警对象id")
    private Long warningTargetId;
 
    @ApiModelProperty("预警对象")
    @ExcelProperty(value = "预警对象", index = 2)
    private String warningTargetName;
 
    @ApiModelProperty("预警类型 1:出库超时预警;2:暂存间使用率预警;3:合同到期预警;4:健康记录预警;5:疫苗记录预警;6:防护用品使用预警;7:医疗机构产废日预警;8:医疗机构产废月预警;9:医疗机构存储量预警;10:车辆转运异常预警;11:处置单位存储量预警")
    @ExcelProperty(value = "预警类型", index = 3, converter = EConverter.class)
    @FastExcel(type = WarningTypeEnum.class)
    private Integer type;
 
    @ApiModelProperty("预警消息")
    @ExcelProperty(value = "预警消息", index = 4)
    private String message;
 
    @ApiModelProperty("预警状态 1:未解除;2:已解除")
    @ExcelProperty(value = "预警状态", index = 5)
    @FastExcel(type = WarningStatusEnum.class)
    private Integer status;
 
    @ApiModelProperty("单位id")
    private Long departmentId;
 
    @ApiModelProperty("单位名称")
    private String departmentName;
 
}