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/area/entity/FwPoliceStationEntity.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwPoliceStationEntity.java b/drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwPoliceStationEntity.java
index d244ff1..78064c2 100644
--- a/drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwPoliceStationEntity.java
+++ b/drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwPoliceStationEntity.java
@@ -17,6 +17,7 @@
package org.sxkj.fw.area.entity;
import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -38,36 +39,43 @@
/**
* 派出所名称
*/
+ @TableField("station_name")
@ApiModelProperty(value = "派出所名称")
private String stationName;
/**
* 派出所地址
*/
+ @TableField("address")
@ApiModelProperty(value = "派出所地址")
private String address;
/**
* 经度
*/
+ @TableField("longitude")
@ApiModelProperty(value = "经度")
private Double longitude;
/**
* 纬度
*/
+ @TableField("latitude")
@ApiModelProperty(value = "纬度")
private Double latitude;
/**
* 联系人
*/
+ @TableField("contact_person")
@ApiModelProperty(value = "联系人")
private String contactPerson;
/**
* 联系方式
*/
+ @TableField("contact_phone")
@ApiModelProperty(value = "联系方式")
private String contactPhone;
/**
* 区域编码
*/
+ @TableField("area_code")
@ApiModelProperty(value = "区域编码")
private String areaCode;
--
Gitblit v1.9.3