| | |
| | | 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.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.models.auth.In; |
| | | 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_maintenance") |
| | | @ApiModel("设备保养记录") |
| | | @Schema(name = "设备保养记录") |
| | | public class DeviceMaintenance { |
| | | |
| | | @ApiModelProperty("设备保养id") |
| | | @Schema(description = "设备保养id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("设备台账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; |
| | | |
| | | @ApiModelProperty("计划保养日期") |
| | | @Schema(description = "计划保养日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime maintenancePlanTime; |
| | | |
| | | @ApiModelProperty("实际保养人") |
| | | @Schema(description = "实际保养人") |
| | | private String maintenanceActuallyName; |
| | | |
| | | @ApiModelProperty("实际保养日期") |
| | | @Schema(description = "实际保养日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime maintenanceActuallyTime; |
| | | |
| | | @ApiModelProperty("保养结果 0 维修 1 完好") |
| | | @Schema(description = "保养结果 0 维修 1 完好") |
| | | private String maintenanceResult; |
| | | |
| | | @ApiModelProperty("状态 0 待保养 1 完结") |
| | | @Schema(description = "状态 0 待保养 1 完结 2 失败") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @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; |
| | | |
| | | @ApiModelProperty("更新时间") |
| | | @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; |
| | | |
| | | @ApiModelProperty("创建人") |
| | | @Schema(description = "创建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("更新人") |
| | | @Schema(description = "更新人") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("租户id") |
| | | @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; |
| | | } |