From e5faf31965fef7235ade5dc39b03384c3830d088 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期三, 21 八月 2019 14:39:09 +0800 Subject: [PATCH] 券退回 券失效 --- fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java index 61e3ad6..70b1c8b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java @@ -288,6 +288,37 @@ @Override + public void couponDrawBack(UserSystemCoupon coupon, String orderId, MsgTypeOtherTypeEnum type) { + if (coupon == null || coupon.getUid() == null) + return; + MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponDrawBack(getLeftDay(coupon), + orderId, coupon.getStartTime(), coupon.getEndTime()); + try { + msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), + coupon.getId(), dto, type, "閫�鍥炲悗渚濈劧鍙湪鏈夋晥鏈熷唴浣跨敤")); + } catch (MsgOtherDetailException e) { + e.printStackTrace(); + } + } + + + @Override + public void outOfDate(UserSystemCoupon coupon, MsgTypeOtherTypeEnum type) { + if (coupon == null || coupon.getUid() == null) + return; + MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory + .createRewardCouponAlreadyOutOfDate(coupon.getSource(), coupon.getStartTime(), coupon.getEndTime()); + try { + MsgOtherDetail detail = MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), coupon.getId(), dto, + type, "鍙備笌娲诲姩鍙幏鍙栨洿澶氬鍔卞埜"); + detail.setCreateTime(coupon.getEndTime()); + msgOtherDetailService.addMsgOtherDetail(detail); + } catch (MsgOtherDetailException e) { + e.printStackTrace(); + } + } + + @Override public void taoLiJinMsg(Long uid, String beiZhu, MsgOtherTaoLiJinContentDTO content) { try { MsgOtherDetail detail = new MsgOtherDetail(); -- Gitblit v1.8.0