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;