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