|
@@ -3,9 +3,9 @@ package com.ylx.product.service.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ylx.common.core.domain.model.WxLoginUser;
|
|
import com.ylx.common.core.domain.model.WxLoginUser;
|
|
|
-import com.ylx.common.utils.DateUtils;
|
|
|
|
|
import com.ylx.common.utils.SecurityUtils;
|
|
import com.ylx.common.utils.SecurityUtils;
|
|
|
import com.ylx.product.domain.ProductOrderAddress;
|
|
import com.ylx.product.domain.ProductOrderAddress;
|
|
|
import com.ylx.product.domain.dto.ProductOrderAddressDTO;
|
|
import com.ylx.product.domain.dto.ProductOrderAddressDTO;
|
|
@@ -18,8 +18,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
-import java.util.Collections;
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 订单收货地址Service业务层处理
|
|
* 订单收货地址Service业务层处理
|
|
@@ -177,7 +175,7 @@ public class ProductOrderAddressServiceImpl extends ServiceImpl<ProductOrderAddr
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public List<ProductOrderAddressVo> list(ProductOrderAddressPageDTO dto) {
|
|
|
|
|
|
|
+ public Page<ProductOrderAddressVo> list(Page<ProductOrderAddress> page, ProductOrderAddressPageDTO dto) {
|
|
|
|
|
|
|
|
WxLoginUser wxLoginUser = SecurityUtils.getWxLoginUser();
|
|
WxLoginUser wxLoginUser = SecurityUtils.getWxLoginUser();
|
|
|
if (ObjectUtil.isNull(wxLoginUser)) {
|
|
if (ObjectUtil.isNull(wxLoginUser)) {
|
|
@@ -185,7 +183,7 @@ public class ProductOrderAddressServiceImpl extends ServiceImpl<ProductOrderAddr
|
|
|
}
|
|
}
|
|
|
String openId = wxLoginUser.getCOpenid();
|
|
String openId = wxLoginUser.getCOpenid();
|
|
|
dto.setOpenId(openId);
|
|
dto.setOpenId(openId);
|
|
|
- return productOrderAddressMapper.list(dto);
|
|
|
|
|
|
|
+ return productOrderAddressMapper.list(page, dto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|