| | |
| | | */ |
| | | package org.sxkj.fw.device.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设备维护计划表 实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-07 |
| | | * @author Aix |
| | | * @since 2026-01-09 |
| | | */ |
| | | @Data |
| | | @TableName("ja_fw_device_maintain_plan") |
| | | @TableName(value ="ja_fw_device_maintain_plan", autoResultMap = true) |
| | | @ApiModel(value = "FwDeviceMaintainPlan对象", description = "设备维护计划表") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class FwDeviceMaintainPlanEntity extends BaseEntity { |
| | | |
| | | /** |
| | | * 设备ID |
| | | */ |
| | | @ApiModelProperty(value = "设备ID") |
| | | private Long deviceId; |
| | | /** |
| | | * 计划周期(每年、每月、每周) |
| | | */ |
| | | @ApiModelProperty(value = "计划周期(每年、每月、每周)") |
| | | private String planCycleType; |
| | | /** |
| | | * 计划周期具体值,数组对象[1,2,3] |
| | | */ |
| | | @ApiModelProperty(value = "计划周期具体值,数组对象[1,2,3]") |
| | | @TableField(typeHandler = FastjsonTypeHandler.class) |
| | | private List<String> planCycleValue; |
| | | |
| | | @ApiModelProperty(value = "维护状态(0未维修1已维修)") |
| | | private Integer maintainStatus; |
| | | |
| | | @ApiModelProperty(value = "最后维修时间") |
| | | @DateTimeFormat( |
| | | pattern = "yyyy-MM-dd HH:mm:ss" |
| | | ) |
| | | @JsonFormat( |
| | | pattern = "yyyy-MM-dd HH:mm:ss" |
| | | ) |
| | | private Date lastMaintainTime; |
| | | |
| | | /** |
| | | * 区域编码 |
| | | */ |
| | | @ApiModelProperty(value = "区域编码") |
| | | private String areaCode; |
| | | |
| | | } |