feat(shop): 经销商申请和用户表添加类型字段并更新相关 mapper 和 param 类

- 在 ShopDealerApply 和 ShopDealerUser 实体类中添加 type 字段,用于区分经销商类型
- 更新 ShopDealerApplyMapper.xml 和 ShopDealerUserMapper.xml,添加 type 字段的查询条件
- 在 ShopDealerApplyParam 和 ShopDealerUserParam 参数类中添加 type 字段,用于查询过滤
This commit is contained in:
2025-09-06 00:30:42 +08:00
parent 7ac9274fe5
commit 1e46ac0033
6 changed files with 20 additions and 0 deletions

View File

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

View File

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

View File

@@ -10,6 +10,9 @@
<if test="param.applyId != null">
AND a.apply_id = #{param.applyId}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>

View File

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

View File

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