|
@@ -51,6 +51,8 @@ public class CouponTypeHandler {
|
|
|
private MemberService memberService;
|
|
|
@Autowired
|
|
|
private SystemService systemService;
|
|
|
+ @Autowired
|
|
|
+ private ExchangeService exchangeService;
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(CouponTypeHandler.class);
|
|
|
/**
|
|
@@ -328,6 +330,14 @@ public class CouponTypeHandler {
|
|
|
&& itemDto.getCouponUseEndDate().before(now)) {
|
|
|
itemDto.setCouponItemRemark(ResultInfo.COUPONITEMSTATUS_PASSED);
|
|
|
}
|
|
|
+ if(itemDto.getCouponType().equals(3)){
|
|
|
+ Exchange exchange = new Exchange();
|
|
|
+ exchange.setCouponId(itemDto.getCouponId());
|
|
|
+ List<Exchange> exchangeList = exchangeService.getExchangeList(exchange);
|
|
|
+ if(exchangeList != null && exchangeList.size() > 0){
|
|
|
+ itemDto.setExchange(exchangeList.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
rm = new ResultMsg(true, ResultMsg.SUCCESS, "查询成功!",null);
|
|
|
map.put("itemList", list);
|