|
|
|
@@ -1,5 +1,5 @@ |
|
|
|
package com.simple.service.impl; |
|
|
|
import com.simple.domain.dto.WxUserCoupon; |
|
|
|
import com.simple.domain.dto.WxUserCouponDto; |
|
|
|
import com.simple.domain.po.WxCoupon; |
|
|
|
import com.simple.domain.po.WxOrder; |
|
|
|
import com.simple.mapper.WxCouponMapper; |
|
|
|
@@ -31,9 +31,9 @@ public class WxUserCouponServiceImpl implements WxUserCouponService { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<WxUserCoupon> findList(Long userId, int status) { |
|
|
|
public List<WxUserCouponDto> findList(Long userId, int status) { |
|
|
|
//TODO 待测试优化 |
|
|
|
List<WxUserCoupon> wxUserCoupons = new ArrayList<>(); |
|
|
|
List<WxUserCouponDto> wxUserCoupons = new ArrayList<>(); |
|
|
|
//查询订单表 |
|
|
|
WxOrder wxOrder = new WxOrder(); |
|
|
|
wxOrder.setCUserId(userId); |
|
|
|
@@ -52,8 +52,8 @@ public class WxUserCouponServiceImpl implements WxUserCouponService { |
|
|
|
} |
|
|
|
return wxUserCoupons; |
|
|
|
} |
|
|
|
public WxUserCoupon getWxUserCoupon(WxOrder wxOrder,String title){ |
|
|
|
WxUserCoupon wxUserCoupon = new WxUserCoupon(); |
|
|
|
public WxUserCouponDto getWxUserCoupon(WxOrder wxOrder, String title){ |
|
|
|
WxUserCouponDto wxUserCoupon = new WxUserCouponDto(); |
|
|
|
wxUserCoupon.setOrderId(wxOrder.getId()); |
|
|
|
wxUserCoupon.setcUserId(wxOrder.getCUserId()); |
|
|
|
wxUserCoupon.setCouponId(wxOrder.getCouponId()); |
|
|
|
|