‘linchangsheng’ 2 tygodni temu
rodzic
commit
b8de7e7398

+ 1 - 0
src/main/java/com/gree/mall/miniapp/logic/goods/GoodsFavoriteLogic.java

@@ -1,5 +1,6 @@
 package com.gree.mall.miniapp.logic.goods;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.gree.mall.miniapp.bean.Page;
 import com.gree.mall.miniapp.bean.goods.GoodsFavoriteBean;
 import com.gree.mall.miniapp.bean.user.CurrentCompanyWechat;

+ 0 - 6
src/main/java/com/gree/mall/miniapp/logic/user/AddressLogic.java

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