From 08ddfad4530a014094c06fe68b8c2d9a0753403a Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Wed, 05 Aug 2026 14:09:29 +0800
Subject: [PATCH] fix(gd): 修复线索事件查询中的SQL语法错误

---
 drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceMaintainPlanEntity.java |   53 +++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 47 insertions(+), 6 deletions(-)

diff --git a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceMaintainPlanEntity.java b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceMaintainPlanEntity.java
index 06d47be..15f4ce0 100644
--- a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceMaintainPlanEntity.java
+++ b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceMaintainPlanEntity.java
@@ -16,24 +16,65 @@
  */
 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.tenant.mp.TenantEntity;
+import org.springblade.core.mp.base.BaseEntity;
+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 TenantEntity {
+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;
 
 }

--
Gitblit v1.9.3