|
@@ -300,19 +300,21 @@ public class CouponTypeHandler {
|
|
|
openid = member.getUserOpenid();
|
|
|
CouponItemDto cDto = new CouponItemDto();
|
|
|
cDto.setUseropenid(openid);
|
|
|
- if ("1".equals(useStatus)) { // 未使用的优惠券
|
|
|
- cDto.setCouponUseStatus(Integer.parseInt(useStatus));
|
|
|
- cDto.setBeginDate(new Date());
|
|
|
- } else if ("2".equals(useStatus)) { // 已使用的优惠券
|
|
|
- cDto.setCouponUseStatus(Integer.parseInt(useStatus));
|
|
|
- cDto.setCouponReduce(7); // 加上了订单是待支付 即couponUseStatus是7的优惠券
|
|
|
- } else if ("3".equals(useStatus)) { // 已过期的优惠券
|
|
|
- cDto.setEndDate(new Date());
|
|
|
- cDto.setCouponItemRemark("4"); // 需去掉已经使用的优惠券
|
|
|
- }
|
|
|
+// if ("1".equals(useStatus)) { // 未使用的优惠券
|
|
|
+// cDto.setCouponUseStatus(Integer.parseInt(useStatus));
|
|
|
+// cDto.setBeginDate(new Date());
|
|
|
+// } else if ("2".equals(useStatus)) { // 已使用的优惠券
|
|
|
+// cDto.setCouponUseStatus(Integer.parseInt(useStatus));
|
|
|
+// cDto.setCouponReduce(7); // 加上了订单是待支付 即couponUseStatus是7的优惠券
|
|
|
+// } else if ("3".equals(useStatus)) { // 已过期的优惠券
|
|
|
+// cDto.setEndDate(new Date());
|
|
|
+// cDto.setCouponItemRemark("4"); // 需去掉已经使用的优惠券
|
|
|
+// }
|
|
|
cDto.setPage(new PageBean());
|
|
|
cDto.getPage().setPageSize(pageSize);
|
|
|
cDto.getPage().setPageNumber(pageNO);
|
|
|
+ cDto.setCouponUseStatus(1);//只展示未使用的
|
|
|
+ cDto.setBeginDate(new Date()); //大于当前时间
|
|
|
List<CouponItemDto> list = couponItemService.getCouponItemDtoList(cDto);
|
|
|
|
|
|
Date now = new Date();
|