package com.ruoyi.device.pojo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
@Data
|
@TableName("device_maintenance")
|
@Schema(name = "设备保养记录")
|
public class DeviceMaintenance {
|
|
@Schema(description = "设备保养id")
|
private Long id;
|
|
@Schema(description = "设备台账id")
|
private Long deviceLedgerId;
|
|
@Schema(description = "保养任务id")
|
private Long maintenanceTaskId;
|
|
@Schema(description = "频次")
|
private String frequencyType;
|
|
@Schema(description = "频次详情")
|
private String frequencyDetail;
|
|
@Schema(description = "下次执行时间")
|
private LocalDateTime nextExecutionTime;
|
|
@Schema(description = "最后执行时间")
|
private LocalDateTime lastExecutionTime;
|
|
@Schema(description = "设备类目")
|
private String machineryCategory;
|
|
|
private String deviceName;
|
|
private String deviceModel;
|
|
@Schema(description = "计划保养日期")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime maintenancePlanTime;
|
|
@Schema(description = "实际保养人")
|
private String maintenanceActuallyName;
|
|
@Schema(description = "实际保养日期")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime maintenanceActuallyTime;
|
|
@Schema(description = "保养结果 0 维修 1 完好")
|
private String maintenanceResult;
|
|
@Schema(description = "状态 0 待保养 1 完结 2 失败")
|
private Integer status;
|
|
@Schema(description = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
@Schema(description = "更新时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
@Schema(description = "创建人")
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
@Schema(description = "更新人")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
@Schema(description = "租户id")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
@Schema(description = "领用备件ids")
|
private String sparePartsIds;
|
|
@Schema(description = "使用备件列表")
|
@TableField(exist = false)
|
private List<SparePartUse> sparePartsUseList;
|
|
@Data
|
public static class SparePartUse {
|
private Long id;
|
private Integer quantity;
|
}
|
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
}
|