yujian
2019-02-28 02ece4ea308a26928dea57ca68f0585fef1d2e62
券消息bug调整
1个文件已修改
20 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -215,11 +215,11 @@
        
        // 消息推送
        try {
            if (coupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
            if (coupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
                userOtherMsgNotificationService.welfareCouponGet(userCoupon);
            } else if (coupon.getType() != CouponTypeEnum.freeCoupon) {
            } else if (coupon.getType() == CouponTypeEnum.freeCoupon) {
                userOtherMsgNotificationService.freeSheetCouponGet(userCoupon);
            } else if (coupon.getType() != CouponTypeEnum.rebatePercentCoupon) {
            } else if (coupon.getType() == CouponTypeEnum.rebatePercentCoupon) {
                userOtherMsgNotificationService.rewardCouponGet(userCoupon,coupon.getPercent().intValue());
            }
            
@@ -618,9 +618,9 @@
        
        // 消息推送
        try {
            if (baseCoupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
            if (baseCoupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
//                userOtherMsgNotificationService.welfareCouponUsing(userSystemCoupon,order);
            } else if (baseCoupon.getType() != CouponTypeEnum.freeCoupon) {
            } else if (baseCoupon.getType() == CouponTypeEnum.freeCoupon) {
//                userOtherMsgNotificationService.freeSheetCouponUsing(userSystemCoupon);
            }
            
@@ -1129,11 +1129,11 @@
            
            // 消息推送
            try {
                if (baseCoupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
                if (baseCoupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
                    userOtherMsgNotificationService.welfareCouponAlreadyOutOfDate(userSystemCoupon);
                } else if (baseCoupon.getType() != CouponTypeEnum.freeCoupon) {
                } else if (baseCoupon.getType() == CouponTypeEnum.freeCoupon) {
                    userOtherMsgNotificationService.freeSheetCouponAlreadyOutOfDate(userSystemCoupon);
                } else if (baseCoupon.getType() != CouponTypeEnum.rebatePercentCoupon) {
                } else if (baseCoupon.getType() == CouponTypeEnum.rebatePercentCoupon) {
                    userOtherMsgNotificationService.rewardCouponAlreadyOutOfDate(userSystemCoupon);
                }
                
@@ -1259,9 +1259,9 @@
                if (baseCoupon == null) {
                    // 券已使用
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon, orderNo);
                } else     if (baseCoupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
                } else     if (baseCoupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
                    userOtherMsgNotificationService.welfareCouponUsing(userSystemCoupon,orderNo,payment);
                } else if (baseCoupon.getType() != CouponTypeEnum.freeCoupon) {
                } else if (baseCoupon.getType() == CouponTypeEnum.freeCoupon) {
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon,orderNo);
                } 
            }