用户查询接口支持id查询

This commit is contained in:
SongZhang 2024-09-23 14:25:31 +08:00
parent 46f0ab568e
commit 121e25ec0f
2 changed files with 6 additions and 1 deletions

View File

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

View File

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