mitao
2025-04-07 6c17cac744b3b439e38f6998ce4704c9a01c5dd2
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
package com.sinata.system.domain.vo;
 
import cn.idev.excel.annotation.ExcelIgnore;
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")
    @ExcelIgnore
    private Long id;
 
    @ApiModelProperty("预警时间")
    @ExcelProperty(value = "预警时间", index = 0)
    private Date warnTime;
 
    @ApiModelProperty("预警对象id")
    @ExcelIgnore
    private Long warningTargetId;
 
    @ApiModelProperty("预警对象")
    @ExcelProperty(value = "预警对象", index = 1)
    private String warningTargetName;
 
    @ApiModelProperty("预警类型 1:出库超时预警 2:暂存间使用率预警 3:合同到期预警 4:健康记录预警 \" +\n" +
            "            \"5:疫苗记录预警 6:防护用品使用预警 7:防护用品库存预警  8:医疗机构产废日预警 \" +\n" +
            "            \"9:医疗机构产废月预警 10:医疗机构存储量预警 11:车辆转运异常预警 12:处置单位存储量预警")
    @ExcelProperty(value = "预警类型", index = 2, converter = EConverter.class)
    @FastExcel(type = WarningTypeEnum.class)
    private Integer type;
 
    @ApiModelProperty("预警消息")
    @ExcelProperty(value = "预警信息", index = 3)
    private String message;
 
    @ApiModelProperty("预警状态 1:未解除;2:已解除")
    @ExcelProperty(value = "预警状态", index = 4, converter = EConverter.class)
    @FastExcel(type = WarningStatusEnum.class)
    private Integer status;
 
    @ApiModelProperty("单位id")
    @ExcelIgnore
    private Long departmentId;
 
    @ApiModelProperty("单位名称")
    @ExcelIgnore
    private String departmentName;
 
}