yujian
2019-08-27 25a398c9a5f865b4f02309ec984a544972fc62c2
退回消息调整
1个文件已修改
8 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -2122,13 +2122,17 @@
            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);