feat(shop): 添加仓库关联功能到店铺实体
- 在 ShopStore 实体中添加 warehouseId 和 warehouseName 字段 - 为 warehouseName 添加 @TableField(exist = false) 注解标识非数据库字段 - 在 ShopStoreParam 参数类中添加 warehouseId 字段用于查询条件 - 更新实体类导入 TableField 注解支持
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.gxwebsoft.shop.entity;
|
package com.gxwebsoft.shop.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -64,6 +65,13 @@ public class ShopStore implements Serializable {
|
|||||||
@Schema(description = "轮廓")
|
@Schema(description = "轮廓")
|
||||||
private String points;
|
private String points;
|
||||||
|
|
||||||
|
@Schema(description = "仓库ID")
|
||||||
|
private Integer warehouseId;
|
||||||
|
|
||||||
|
@Schema(description = "仓库名称")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String warehouseName;
|
||||||
|
|
||||||
@Schema(description = "用户ID")
|
@Schema(description = "用户ID")
|
||||||
private Integer userId;
|
private Integer userId;
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ public class ShopStoreParam extends BaseParam {
|
|||||||
@Schema(description = "经度和纬度")
|
@Schema(description = "经度和纬度")
|
||||||
private String lngAndLat;
|
private String lngAndLat;
|
||||||
|
|
||||||
|
@Schema(description = "仓库ID")
|
||||||
|
private Integer warehouseId;
|
||||||
|
|
||||||
@Schema(description = "用户ID")
|
@Schema(description = "用户ID")
|
||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer userId;
|
private Integer userId;
|
||||||
|
|||||||
Reference in New Issue
Block a user