用户查询接口支持id查询
This commit is contained in:
@@ -12,6 +12,8 @@ public class TbShopUserQueryCriteria {
|
|||||||
|
|
||||||
private Integer isVip;
|
private Integer isVip;
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
private Long page=1L;
|
private Long page=1L;
|
||||||
private Long size=10L;
|
private Long size=10L;
|
||||||
|
|
||||||
@@ -32,4 +34,4 @@ public class TbShopUserQueryCriteria {
|
|||||||
this.isVip = isVip;
|
this.isVip = isVip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ public interface ShopUserMapper extends BaseMapper<TbShopUser> {
|
|||||||
"<if test='isVip != null'>" +
|
"<if test='isVip != null'>" +
|
||||||
"AND su.is_vip=#{isVip} " +
|
"AND su.is_vip=#{isVip} " +
|
||||||
"</if>" +
|
"</if>" +
|
||||||
|
"<if test='param.id != null'>" +
|
||||||
|
"AND su.id=#{param.id}" +
|
||||||
|
"</if>" +
|
||||||
"</where>" +
|
"</where>" +
|
||||||
"order by su.created_at" +
|
"order by su.created_at" +
|
||||||
"</script>")
|
"</script>")
|
||||||
|
|||||||
Reference in New Issue
Block a user