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.Date; import java.util.List; @Data @TableName("device_repair") public class DeviceRepair { @Schema(description = "设备报修id") private Long id; @Schema(description = "设备台账id") private Long deviceLedgerId; private String deviceName; private String deviceModel; @Schema(description = "报修时间") private Date repairTime; @Schema(description = "报修人") private String repairName; @Schema(description = "报修内容") private String remark; @Schema(description = "设备项目") private String machineryCategory; @Schema(description = "维修人") private String maintenanceName; @Schema(description = "维修时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime maintenanceTime; @Schema(description = "维修结果") 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 = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 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 sparePartsUseList; @Data public static class SparePartUse { private Long id; private Integer quantity; } @TableField(fill = FieldFill.INSERT) private Long deptId; }