feat(shop): 添加客户编号查询功能
- 在 ShopDealerApplyParam 中新增 dealerCode 字段用于客户编号查询 - 在 ShopDealerApplyMapper.xml 中添加 dealer_code 查询条件 - 实现按客户编号精确匹配的查询逻辑 - 更新参数校验和文档注释
This commit is contained in:
@@ -40,6 +40,9 @@
|
|||||||
<if test="param.dealerName != null">
|
<if test="param.dealerName != null">
|
||||||
AND a.dealer_name LIKE CONCAT('%', #{param.dealerName}, '%')
|
AND a.dealer_name LIKE CONCAT('%', #{param.dealerName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.dealerCode != null">
|
||||||
|
AND a.dealer_code = #{param.dealerCode}
|
||||||
|
</if>
|
||||||
<if test="param.refereeId != null">
|
<if test="param.refereeId != null">
|
||||||
AND a.referee_id = #{param.refereeId}
|
AND a.referee_id = #{param.refereeId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ public class ShopDealerApplyParam extends BaseParam {
|
|||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer userId;
|
private Integer userId;
|
||||||
|
|
||||||
|
@Schema(description = "客户编号")
|
||||||
|
private String dealerCode;
|
||||||
|
|
||||||
@Schema(description = "姓名")
|
@Schema(description = "姓名")
|
||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user