/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.sxkj.fw.device.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; 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.springframework.format.annotation.DateTimeFormat; import java.util.Date; import java.util.List; /** * 设备维护计划表 实体类 * * @author Aix * @since 2026-01-09 */ @Data @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 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; }