Browse Source

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

- 在 ShopDealerApply 和 ShopDealerUser 实体类中添加 type 字段,用于区分经销商类型
- 更新 ShopDealerApplyMapper.xml 和 ShopDealerUserMapper.xml,添加 type 字段的查询条件
- 在 ShopDealerApplyParam 和 ShopDealerUserParam 参数类中添加 type 字段,用于查询过滤
pan
科技小王子 3 weeks ago
parent
commit
1e46ac0033
  1. 3
      src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java
  2. 3
      src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java
  3. 3
      src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml
  4. 3
      src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml
  5. 4
      src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java
  6. 4
      src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java

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

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

3
src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml

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

3
src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml

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

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

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

Loading…
Cancel
Save