| | |
| | | if (systemCoupon == null)
|
| | | continue;
|
| | |
|
| | | String couponName = systemCoupon.getName();
|
| | | if (CouponTypeEnum.freeCouponGive == systemCoupon.getType())
|
| | | couponName = "免单券";
|
| | | |
| | | // 退回消息
|
| | | String beiZhu = "请到我的-福利中心查看";
|
| | | SimpleDateFormat sd = new SimpleDateFormat("yyyy.MM.dd HH:mm");
|
| | | MsgOtherGiveContentDTO msgOther = new MsgOtherGiveContentDTO();
|
| | | msgOther.setType(MsgOtherGiveContentDTO.TYEP_COUPON);
|
| | | msgOther.setTitle("赠送" + systemCoupon.getName() + "退回");
|
| | | msgOther.setGiveType("你赠送的"+ systemCoupon.getName() + "未被成功领取");
|
| | | msgOther.setTitle("赠送" + couponName + "退回");
|
| | | msgOther.setGiveType("你赠送的"+ couponName + "未被成功领取");
|
| | | msgOther.setGiveTime(sd.format(record.getGiveTime()));
|
| | | msgOther.setReturnTime(sd.format(new Date()));
|
| | | userOtherMsgNotificationService.tokenGiveMsg(record.getGiveUid(), beiZhu, msgOther);
|
| | |
| | | }
|
| | |
|
| | |
|
| | | // @Override
|
| | | // public boolean countIncludeExchange(Long uid) {
|
| | | // |
| | | // |
| | | // }
|
| | | // |
| | | // |
| | | // @Override
|
| | | // public boolean countNotIncludeExchange(Long uid) {
|
| | | // |
| | | // |
| | | // }
|
| | | @Override
|
| | | public boolean getIncludeExchange(Long uid) {
|
| | | List<String> list = new ArrayList<String>();
|
| | | list.add(UserSystemCoupon.SOURCE_EXCHANGE);
|
| | | list.add(UserSystemCoupon.SOURCE_GIVE);
|
| | | List<UserSystemCoupon> listCoupon = userSystemCouponMapper.getIncludeExchange(uid, list);
|
| | | if (listCoupon == null || listCoupon.size() == 0)
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public boolean getIncludeNotExchange(Long uid) {
|
| | | List<String> list = new ArrayList<String>();
|
| | | list.add(UserSystemCoupon.SOURCE_EXCHANGE);
|
| | | list.add(UserSystemCoupon.SOURCE_GIVE);
|
| | | List<UserSystemCoupon> listCoupon = userSystemCouponMapper.getIncludeNotExchange(uid, list);
|
| | | if (listCoupon == null || listCoupon.size() == 0)
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | |
|
| | | }
|