From 7191c93b4c8f3904211f629977309dcc9a49dd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 6 Feb 2026 20:02:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=B7=BB=E5=8A=A0=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=85=B3=E8=81=94=E5=8A=9F=E8=83=BD=E5=88=B0=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E5=AE=9E=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ShopStore 实体中添加 warehouseId 和 warehouseName 字段 - 为 warehouseName 添加 @TableField(exist = false) 注解标识非数据库字段 - 在 ShopStoreParam 参数类中添加 warehouseId 字段用于查询条件 - 更新实体类导入 TableField 注解支持 --- src/main/java/com/gxwebsoft/shop/entity/ShopStore.java | 8 ++++++++ .../java/com/gxwebsoft/shop/param/ShopStoreParam.java | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopStore.java b/src/main/java/com/gxwebsoft/shop/entity/ShopStore.java index 5c42c0b..c0fd540 100644 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopStore.java +++ b/src/main/java/com/gxwebsoft/shop/entity/ShopStore.java @@ -1,6 +1,7 @@ package com.gxwebsoft.shop.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import java.time.LocalDateTime; import java.io.Serializable; @@ -64,6 +65,13 @@ public class ShopStore implements Serializable { @Schema(description = "轮廓") private String points; + @Schema(description = "仓库ID") + private Integer warehouseId; + + @Schema(description = "仓库名称") + @TableField(exist = false) + private String warehouseName; + @Schema(description = "用户ID") private Integer userId; diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopStoreParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopStoreParam.java index 59c5ecb..83d7708 100644 --- a/src/main/java/com/gxwebsoft/shop/param/ShopStoreParam.java +++ b/src/main/java/com/gxwebsoft/shop/param/ShopStoreParam.java @@ -56,6 +56,9 @@ public class ShopStoreParam extends BaseParam { @Schema(description = "经度和纬度") private String lngAndLat; + @Schema(description = "仓库ID") + private Integer warehouseId; + @Schema(description = "用户ID") @QueryField(type = QueryType.EQ) private Integer userId;