吉安感知网项目-后端
linwei
2026-01-19 1f9f5596657af4af7e4e7da735358a0f00d64bbc
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
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.device.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.sxkj.system.cache.SysCache;
 
import java.io.Serializable;
import java.util.Date;
import java.util.List;
 
/**
 * 设备维护计划表 视图实体类
 *
 * @author Aix
 * @since 2026-01-09
 */
@Data
public class FwDeviceMaintainPlanVO implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "主键")
    private    Long id;
 
    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    private Long deviceId;
    /**
     * 计划周期(每年、每月、每周)
     */
    @ApiModelProperty(value = "计划周期(每年、每月、每周)")
    private String planCycleType;
    /**
     * 计划周期具体值,数组对象[1,2,3]
     */
    @ApiModelProperty(value = "计划周期具体值,数组对象[1,2,3]")
    private List<String> planCycleValue;
 
    // 设备相关
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
 
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    private String deviceType;
 
    /**
     * 设备属性
     */
    @ApiModelProperty(value = "设备属性")
    private String deviceAtt;
 
    /**
     * 设备型号
     */
    @ApiModelProperty(value = "设备型号")
    private String deviceModel;
 
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private Long belongDept;
 
    /**
     * 设备规格
     */
    @ApiModelProperty(value = "设备规格")
    private String deviceSpecification;
 
    /**
     * 生产厂商
     */
    @ApiModelProperty(value = "生产厂商")
    private String manufacturer;
 
    /**
     * 来源
     */
    @ApiModelProperty(value = "来源")
    private String source;
 
    /**
     * 用途
     */
    @ApiModelProperty(value = "用途")
    private String purpose;
 
    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    private String charger;
 
    @ApiModelProperty("入库时间")
    private Date createTime;
 
    @ApiModelProperty(value = "维护状态(0未维修1已维修)")
    private Integer maintainStatus;
 
    @ApiModelProperty(value = "最后维修时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date lastMaintainTime;
 
    @ApiModelProperty(value = "所属部门名称")
    public String getBelongDeptName() {
        if (belongDept == null) {
            return null;
        }
        return SysCache.getDeptName(belongDept);
    }
 
}