From 1e46ac00333197fca5f1c77277b2045044fec999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 6 Sep 2025 00:30:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E7=BB=8F=E9=94=80=E5=95=86?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=92=8C=E7=94=A8=E6=88=B7=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B8=E5=85=B3=20mapper=20=E5=92=8C=20param=20?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ShopDealerApply 和 ShopDealerUser 实体类中添加 type 字段,用于区分经销商类型 - 更新 ShopDealerApplyMapper.xml 和 ShopDealerUserMapper.xml,添加 type 字段的查询条件 - 在 ShopDealerApplyParam 和 ShopDealerUserParam 参数类中添加 type 字段,用于查询过滤 --- src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java | 3 +++ src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java | 3 +++ .../com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml | 3 +++ .../com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml | 3 +++ .../java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java | 4 ++++ .../java/com/gxwebsoft/shop/param/ShopDealerUserParam.java | 4 ++++ 6 files changed, 20 insertions(+) diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java index 44cdcae..b605ab2 100644 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java +++ b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java @@ -27,6 +27,9 @@ public class ShopDealerApply implements Serializable { @TableId(value = "apply_id", type = IdType.AUTO) private Integer applyId; + @Schema(description = "0经销商,1企业也,2集团)") + private Integer type; + @Schema(description = "用户ID") private Integer userId; diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java index e8e3103..a90d0f1 100644 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java +++ b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java @@ -26,6 +26,9 @@ public class ShopDealerUser implements Serializable { @TableId(value = "id", type = IdType.AUTO) private Integer id; + @Schema(description = "0经销商,1企业也,2集团)") + private Integer type; + @Schema(description = "自增ID") private Integer userId; diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml index 0610b7f..5ced30c 100644 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml +++ b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml @@ -10,6 +10,9 @@ AND a.apply_id = #{param.applyId} + + AND a.type = #{param.type} + AND a.user_id = #{param.userId} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml index 75a53d8..e5a3b22 100644 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml +++ b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml @@ -10,6 +10,9 @@ AND a.id = #{param.id} + + AND a.type = #{param.type} + AND a.user_id = #{param.userId} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java index 5ff860a..0826134 100644 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java +++ b/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java @@ -26,6 +26,10 @@ public class ShopDealerApplyParam extends BaseParam { @QueryField(type = QueryType.EQ) private Integer applyId; + @Schema(description = "0经销商,1企业也,2集团)") + @QueryField(type = QueryType.EQ) + private Integer type; + @Schema(description = "用户ID") @QueryField(type = QueryType.EQ) private Integer userId; diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java index abd3d4b..67aaa12 100644 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java +++ b/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java @@ -26,6 +26,10 @@ public class ShopDealerUserParam extends BaseParam { @QueryField(type = QueryType.EQ) private Integer id; + @Schema(description = "类型") + @QueryField(type = QueryType.EQ) + private Integer type; + @Schema(description = "自增ID") @QueryField(type = QueryType.EQ) private Integer userId;