From f5102f40da5f125985ecb7955bd1471040296f72 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Thu, 08 Jan 2026 10:39:21 +0800
Subject: [PATCH] 实体类的数据库字段注解
---
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceEntity.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceEntity.java b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceEntity.java
index f3f4746..5020c5c 100644
--- a/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceEntity.java
+++ b/drone-service/drone-fw/src/main/java/org/sxkj/fw/device/entity/FwDeviceEntity.java
@@ -17,11 +17,13 @@
package org.sxkj.fw.device.entity;
import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
+import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tenant.mp.TenantEntity;
/**
@@ -34,41 +36,48 @@
@TableName("ja_fw_device")
@ApiModel(value = "FwDevice对象", description = "反无设备表")
@EqualsAndHashCode(callSuper = true)
-public class FwDeviceEntity extends TenantEntity {
+public class FwDeviceEntity extends BaseEntity {
/**
* 设备名称
*/
+ @TableField("device_name")
@ApiModelProperty(value = "设备名称")
private String deviceName;
/**
* 设备类型
*/
+ @TableField("device_type")
@ApiModelProperty(value = "设备类型")
private String deviceType;
/**
* 设备型号
*/
+ @TableField("device_model")
@ApiModelProperty(value = "设备型号")
private String deviceModel;
/**
* 规格
*/
+ @TableField("device_specification")
@ApiModelProperty(value = "规格")
private String deviceSpecification;
/**
* 生产厂商
*/
+ @TableField("manufacturer")
@ApiModelProperty(value = "生产厂商")
private String manufacturer;
/**
* 来源
*/
+ @TableField("source")
@ApiModelProperty(value = "来源")
private String source;
/**
* 备注
*/
+ @TableField("remark")
@ApiModelProperty(value = "备注")
private String remark;
--
Gitblit v1.9.3