gongchunyi
4 小时以前 e237862aa7204822a89340fc28e8613f993bb9ce
src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentRecord.java
@@ -1,34 +1,76 @@
package com.ruoyi.safe.specialequipment.pojo;
import com.baomidou.mybatisplus.annotation.*;
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.io.Serial;
import java.io.Serializable;
import java.time.*;
@Data
@Schema(description = "特种设备检验维保记录")
@TableName("special_equipment_record")
public class SpecialEquipmentRecord {
public class SpecialEquipmentRecord implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO) private Long id;
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long equipmentId;
    @Excel(name = "记录类型", readConverterExp = "1=检验,2=维保") private Integer recordType;
    @Excel(name = "记录编号") private String recordNo;
    @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate recordDate;
    @Excel(name = "执行结果") private String executeResult;
    @Excel(name = "问题描述") private String problemDescription;
    @Excel(name = "处理措施") private String disposeMeasure;
    @Excel(name = "记录类型", readConverterExp = "1=检验,2=维保")
    private Integer recordType;
    @Excel(name = "记录编号")
    private String recordNo;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate recordDate;
    @Excel(name = "执行结果")
    private String executeResult;
    @Excel(name = "问题描述")
    private String problemDescription;
    @Excel(name = "处理措施")
    private String disposeMeasure;
    private Long executorId;
    @Excel(name = "执行人") private String executorName;
    @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次到期日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate nextDueDate;
    @Excel(name = "附件说明") private String attachmentRemark;
    @TableField(fill = FieldFill.INSERT) private Long createUser;
    @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE) private Long updateUser;
    @TableField(fill = FieldFill.UPDATE) private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT) private Long tenantId;
    @TableField(fill = FieldFill.INSERT) private Long deptId;
    @Excel(name = "执行人")
    private String executorName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate nextDueDate;
    @Excel(name = "附件说明")
    private String attachmentRemark;
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updateUser;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}