feat(shop): 经销商申请和用户表添加类型字段并更新相关 mapper 和 param 类
- 在 ShopDealerApply 和 ShopDealerUser 实体类中添加 type 字段,用于区分经销商类型 - 更新 ShopDealerApplyMapper.xml 和 ShopDealerUserMapper.xml,添加 type 字段的查询条件 - 在 ShopDealerApplyParam 和 ShopDealerUserParam 参数类中添加 type 字段,用于查询过滤
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user