feat(shop): 添加仓库关联功能到店铺实体

- 在 ShopStore 实体中添加 warehouseId 和 warehouseName 字段
- 为 warehouseName 添加 @TableField(exist = false) 注解标识非数据库字段
- 在 ShopStoreParam 参数类中添加 warehouseId 字段用于查询条件
- 更新实体类导入 TableField 注解支持
This commit is contained in:
2026-02-06 20:02:51 +08:00
parent f8d134a330
commit 7191c93b4c
2 changed files with 11 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;