用户列表 按注册时间倒叙
This commit is contained in:
@@ -42,7 +42,8 @@ public interface TbShopUserRepository extends JpaRepository<TbShopUser, Integer>
|
|||||||
"on su.userId = CAST(u.id AS string) " +
|
"on su.userId = CAST(u.id AS string) " +
|
||||||
"WHERE su.isVip = IFNULL(:isVip, su.isVip)" +
|
"WHERE su.isVip = IFNULL(:isVip, su.isVip)" +
|
||||||
"AND (u.telephone = IFNULL(:phone, u.telephone))" +
|
"AND (u.telephone = IFNULL(:phone, u.telephone))" +
|
||||||
"AND su.shopId = :shopId")
|
"AND su.shopId = :shopId " +
|
||||||
|
"order by su.createdAt desc ")
|
||||||
Page<ShopUserInfoVo> findShopUserJoinUserInfo(String shopId,Integer isVip,String phone, Pageable pageable);
|
Page<ShopUserInfoVo> findShopUserJoinUserInfo(String shopId,Integer isVip,String phone, Pageable pageable);
|
||||||
|
|
||||||
@Query("SELECT NEW cn.ysk.cashier.vo.ShopUserInfoVo(su.id, u.headImg, u.nickName, u.sex, u.amount, u.totalScore, u.telephone, u.birthDay, u.isVip, su.createdAt, u.lastLogInAt) " +
|
@Query("SELECT NEW cn.ysk.cashier.vo.ShopUserInfoVo(su.id, u.headImg, u.nickName, u.sex, u.amount, u.totalScore, u.telephone, u.birthDay, u.isVip, su.createdAt, u.lastLogInAt) " +
|
||||||
@@ -50,7 +51,8 @@ public interface TbShopUserRepository extends JpaRepository<TbShopUser, Integer>
|
|||||||
"LEFT JOIN TbUserInfo u " +
|
"LEFT JOIN TbUserInfo u " +
|
||||||
"on su.userId = CAST(u.id AS string) " +
|
"on su.userId = CAST(u.id AS string) " +
|
||||||
"WHERE su.isVip = IFNULL(:isVip, su.isVip)" +
|
"WHERE su.isVip = IFNULL(:isVip, su.isVip)" +
|
||||||
"AND (u.telephone = IFNULL(:phone, u.telephone))")
|
"AND (u.telephone = IFNULL(:phone, u.telephone))" +
|
||||||
|
"order by su.createdAt desc ")
|
||||||
Page<ShopUserInfoVo> findAllShopUserJoinUserInfo(Integer isVip,String phone, Pageable pageable);
|
Page<ShopUserInfoVo> findAllShopUserJoinUserInfo(Integer isVip,String phone, Pageable pageable);
|
||||||
|
|
||||||
@Query("SELECT count(0) from TbShopUser user where user.shopId = :shopId")
|
@Query("SELECT count(0) from TbShopUser user where user.shopId = :shopId")
|
||||||
|
|||||||
Reference in New Issue
Block a user