package com.ruoyi.device.pojo; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDate; /** * 设备维护保养 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("device_maintenance") public class DeviceMaintenance { //设备id @TableId(type = IdType.AUTO) private Integer id; private Integer deviceId; private String deviceName; //编号 private String deviceNumber; //统一编号 private String managementNumber; //维护内容 private String content; //维护日期 @TableField(fill = FieldFill.INSERT) @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate date; //下次维护日期 @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate nextDate; //维护类型 private Integer maintenanceType; //维护人员 private String name; //备注 private String comments; }