|
@@ -106,12 +106,6 @@ public class AddressLogic {
|
|
|
|
|
|
public IPage<UserAddress> page(String userId, Integer pageNum, Integer pageSize) {
|
|
|
|
|
|
- Integer count = userAddressService.lambdaQuery()
|
|
|
- .eq(StringUtils.isNotBlank(userId), UserAddress::getUserId, userId)
|
|
|
- .orderByDesc(UserAddress::getCreateTime).count();
|
|
|
- if (count< 1)
|
|
|
- return new Page<>();
|
|
|
-
|
|
|
Page<UserAddress> page = userAddressService.lambdaQuery()
|
|
|
.eq(StringUtils.isNotBlank(userId), UserAddress::getUserId, userId)
|
|
|
.orderByDesc(UserAddress::getCreateTime)
|