2 天以前 e772b3d8cf395e9d441419373d883601350fbf0b
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
package com.ruoyi.device.pojo;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDate;
import java.time.LocalDateTime;
 
/**
 * @author :yys
 * @date : 2025/9/19 10:27
 */
@Data
@Schema
@TableName("maintenance_task")
public class MaintenanceTask {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "规格型号")
    private String deviceModel;
 
    @Schema(description = "设备项目")
    private String machineryCategory;
 
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "设备区域ID")
    private Long areaId;
 
    @Schema(description = "设备名称")
    @Excel(name = "保养任务名称")
    private String taskName;
 
    @Schema(description = "设备id")
    private Long taskId;
 
    @Schema(description = "保养人")
    @Excel(name = "保养人")
    private String maintenancePerson;
 
    @Schema(description = "频次")
    @Excel(name = "频次")
    private String frequencyType;
 
    @Schema(description = "频次详情")
    @Excel(name = "开始日期与时间")
    private String frequencyDetail;
 
    @Schema(description = "下次执行时间")
    private LocalDateTime nextExecutionTime;
 
    @Schema(description = "最后执行时间")
    private LocalDateTime lastExecutionTime;
 
    @Schema(description = "是否激活")
    private boolean isActive;
 
    @Schema(description = "是否启用 0-禁用 1-启用")
    private Integer isEnabled;
 
    @Schema(description = "备注")
    @Excel(name = "备注")
    private String remarks;
 
    @Schema(description = "保养内容")
    @Excel(name = "保养内容")
    private String maintenanceContent;
 
    @Schema(description = "录入人id")
    private Long registrantId;
 
    @Schema(description = "录入人")
    @Excel(name = "录入人")
    private String registrant;
 
    @Schema(description = "录入日期")
    @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate registrationDate;
 
    @Schema(description = "状态")
    private String status;
 
    @Schema(description = "软删除标志,0=未删除,1=已删除")
    private Integer deleted;
 
    @TableField(exist = false)
    private String dateStr;
 
    @Schema(description = "创建该记录的用户")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private Integer createUser;
 
    @Schema(description = "记录创建时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
 
    @Schema(description = "最后修改该记录的用户")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    private Integer updateUser;
 
    @Schema(description = "记录最后更新时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
 
    @Schema(description = "租户ID")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private Long tenantId;
 
 
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
 
    @TableField(exist = false)
    private String areaName;
}