package com.yuanchu.mom.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) //@Accessors(chain = true) @TableName("device_maintenance") public class DeviceMaintenance { // @TableId(value = "id", type = IdType.AUTO) private static final long serialVersionUID = 1L; //设备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; }