admin
2019-02-28 d849e3a1abb07f459d6394adc6b69e7c6e7aeb63
券消息修改
6个文件已修改
237 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/dto/msg/MsgOtherCouponContentDTO.java 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/inter/msg/UserOtherMsgNotificationService.java 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherCouponContentDTOFactory.java 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dto/msg/MsgOtherCouponContentDTO.java
@@ -13,10 +13,9 @@
    private String source;// 来源
    private String orderId;// 订单号
    private String desc;// 说明
    private BigDecimal fanLiMoney;
    private BigDecimal fanLiMoney;// 预估返利
    private BigDecimal orderFanLiMoney;// 订单返利
    private BigDecimal rewardMoney;// 奖励金
    private String startTime;
    private String endTime;
    private Integer leftDay;
@@ -85,4 +84,20 @@
        this.fanLiMoney = fanLiMoney;
    }
    public BigDecimal getOrderFanLiMoney() {
        return orderFanLiMoney;
    }
    public void setOrderFanLiMoney(BigDecimal orderFanLiMoney) {
        this.orderFanLiMoney = orderFanLiMoney;
    }
    public BigDecimal getRewardMoney() {
        return rewardMoney;
    }
    public void setRewardMoney(BigDecimal rewardMoney) {
        this.rewardMoney = rewardMoney;
    }
}
fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java
@@ -5,6 +5,7 @@
import javax.annotation.Resource;
import org.omg.CORBA.PERSIST_STORE;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dto.msg.MsgOtherCouponContentDTO;
@@ -67,8 +68,8 @@
    public void welfareCouponUsing(UserSystemCoupon coupon,String orderId,BigDecimal money) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsing(orderId,money,coupon.getStartTime(),
                coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsing(orderId, money,
                coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "实付款-返利=0元购(免单)"));
@@ -81,8 +82,8 @@
    public void welfareCouponUsed(UserSystemCoupon coupon,String orderId) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsed(getLeftDay(coupon),"实付款-返利=0元购(免单)",
                coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsed(orderId,
                "实付款-返利=0元购(免单)", coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "参与其他活动可获得更多免单券"));
@@ -110,7 +111,7 @@
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
                .createWelfareCouponAlreadyOutOfDate(coupon.getStartTime(), coupon.getEndTime());
                .createWelfareCouponAlreadyOutOfDate(coupon.getSource(),coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "参与其他活动可获得更多免单券"));
@@ -123,8 +124,8 @@
    public void welfareCouponDrawBack(UserSystemCoupon coupon,String orderId) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
                .createWelfareCouponAlreadyOutOfDate(coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponDrawBack(getLeftDay(coupon),
                orderId, coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "退回后依然可在有效期内使用"));
@@ -141,35 +142,35 @@
                coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "可在首页-免单商品-选择商品-使用"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void freeSheetCouponUsing(UserSystemCoupon coupon) {
    public void freeSheetCouponUsing(UserSystemCoupon coupon, String orderId, BigDecimal money) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponUsing(coupon.getSource(),
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponUsing(orderId, money,
                coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "实付款-返利=0元购(免单)"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void freeSheetCouponUsed(UserSystemCoupon coupon) {
    public void freeSheetCouponUsed(UserSystemCoupon coupon, String orderId) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponUsed(getLeftDay(coupon),
                coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsed(orderId,
                "实付款-返利=0元购(免单)", coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "参与其他活动可获得更多免单券"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
@@ -179,11 +180,11 @@
    public void freeSheetCouponWillOutOfDate(UserSystemCoupon coupon) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponWillOutOfDate(getLeftDay(coupon),
                coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
                .createWelfareCouponWillOutOfDate(getLeftDay(coupon), coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "至少成功邀请1个队员后可激活"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
@@ -193,53 +194,68 @@
    public void freeSheetCouponAlreadyOutOfDate(UserSystemCoupon coupon) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponAlreadyOutOfDate(coupon.getSource(),
                coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
                .createWelfareCouponAlreadyOutOfDate(coupon.getSource(),coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "参与其他活动可获得更多免单券"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void rewardCouponGet(UserSystemCoupon coupon) {
    public void freeSheetCouponDrawBack(UserSystemCoupon coupon, String orderId) {
        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, MsgTypeOtherTypeEnum.couponMianDan, "退回后依然可在有效期内使用"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void rewardCouponGet(UserSystemCoupon coupon, int percent) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponGet(getLeftDay(coupon),
                coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, "返利已到账后再奖励返利" + percent + "%"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void rewardCouponUsed(UserSystemCoupon coupon) {
    public void rewardCouponUsed(UserSystemCoupon coupon, BigDecimal oldFanLiMoney, BigDecimal rewardMoney,
            String orderId) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponUsed(getLeftDay(coupon),
                coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponUsed(oldFanLiMoney,
                rewardMoney, orderId);
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, "参与活动可获取更多奖励券"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void rewardCouponWillOutOfDate(UserSystemCoupon coupon) {
    public void rewardCouponWillOutOfDate(UserSystemCoupon coupon, int percent) {
        if (coupon == null || coupon.getUid() == null)
            return;
        MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponWillOutOfDate(
                getLeftDay(coupon), coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, "返利已到账后再奖励返利" + percent + "%"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
@@ -253,16 +269,10 @@
                .createRewardCouponAlreadyOutOfDate(coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
        try {
            msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
                    coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, "参与活动可获取更多奖励券"));
        } catch (MsgOtherDetailException e) {
            e.printStackTrace();
        }
    }
    @Override
    public void freeSheetCouponDrawBack(UserSystemCoupon coupon) {
        // TODO Auto-generated method stub
    }
}
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -220,7 +220,7 @@
            } else if (coupon.getType() != CouponTypeEnum.freeCoupon) {
                userOtherMsgNotificationService.freeSheetCouponGet(userCoupon);
            } else if (coupon.getType() != CouponTypeEnum.rebatePercentCoupon) {
                userOtherMsgNotificationService.rewardCouponGet(userCoupon);
                userOtherMsgNotificationService.rewardCouponGet(userCoupon,coupon.getPercent().intValue());
            }
            
        } catch(Exception e) {
@@ -603,7 +603,7 @@
            if (baseCoupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
//                userOtherMsgNotificationService.welfareCouponUsing(userSystemCoupon,order);
            } else if (baseCoupon.getType() != CouponTypeEnum.freeCoupon) {
                userOtherMsgNotificationService.freeSheetCouponUsing(userSystemCoupon);
//                userOtherMsgNotificationService.freeSheetCouponUsing(userSystemCoupon);
            }
            
        } catch(Exception e) {
@@ -718,7 +718,7 @@
            
            // 消息推送
            try {
                userOtherMsgNotificationService.rewardCouponUsed(userSystemCoupon);
                userOtherMsgNotificationService.rewardCouponUsed(userSystemCoupon, hongBao, money, orderNo);
            } catch(Exception e) {
                LogHelper.errorDetailInfo(e);
            }
@@ -1234,11 +1234,11 @@
                SystemCoupon baseCoupon = systemCouponService.selectByPrimaryKey(systemCoupon.getId());
                if (baseCoupon == null) {
                    // 券已使用
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon);
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon, orderNo);
                } else     if (baseCoupon.getType() != CouponTypeEnum.welfareFreeCoupon) {
                    userOtherMsgNotificationService.welfareCouponUsing(userSystemCoupon,orderNo,payment);
                } else if (baseCoupon.getType() != CouponTypeEnum.freeCoupon) {
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon);
                    userOtherMsgNotificationService.freeSheetCouponUsed(userSystemCoupon,orderNo);
                } 
            }
        }
fanli/src/main/java/com/yeshi/fanli/service/inter/msg/UserOtherMsgNotificationService.java
@@ -93,7 +93,7 @@
     * @param startTime
     * @param endTime
     */
    public void freeSheetCouponUsing(UserSystemCoupon coupon);
    public void freeSheetCouponUsing(UserSystemCoupon coupon,String orderId,BigDecimal money);
    /**
     * 免单券已经使用
@@ -103,7 +103,7 @@
     * @param startTime
     * @param endTime
     */
    public void freeSheetCouponUsed(UserSystemCoupon coupon);
    public void freeSheetCouponUsed(UserSystemCoupon coupon,String orderId);
    /**
     * 免单券即将过期
@@ -128,29 +128,26 @@
     * 已退回
     * @param coupon
     */
    public void freeSheetCouponDrawBack(UserSystemCoupon coupon);
    public void freeSheetCouponDrawBack(UserSystemCoupon coupon,String orderId);
    // 奖励券
    /**
     * 奖励券获得
     *
     * @param leftDay
     * @param source
     * @param startTime
     * @param endTime
     */
    public void rewardCouponGet(UserSystemCoupon coupon);
    /**
     * 奖励券已经使用
     *
     * @param leftDay
     * @param source
     * @param startTime
     * @param endTime
     *  奖励券获得
     * @param coupon
     * @param percent -百分比
     */
    public void rewardCouponUsed(UserSystemCoupon coupon);
    public void rewardCouponGet(UserSystemCoupon coupon,int percent);
    /**
     * 奖励券使用成功
     * @param coupon
     * @param oldFanLiMoney-原始返利金额
     * @param rewardMoney-奖励金额
     */
    public void rewardCouponUsed(UserSystemCoupon coupon,BigDecimal oldFanLiMoney,BigDecimal rewardMoney,String orderId);
    /**
     * 奖励券即将过期
@@ -160,7 +157,7 @@
     * @param startTime
     * @param endTime
     */
    public void rewardCouponWillOutOfDate(UserSystemCoupon coupon);
    public void rewardCouponWillOutOfDate(UserSystemCoupon coupon,int percent);
    /**
     * 奖励券已经过期
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherCouponContentDTOFactory.java
@@ -28,37 +28,49 @@
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponActive(Integer leftDay, String source, Date startTime, Date endTime) {
    public static MsgOtherCouponContentDTO createWelfareCouponActive(Integer leftDay, String source, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, source, startTime, endTime);
        dto.setState("已被激活");
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponUsing(String orderId,BigDecimal money, Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, startTime, endTime);
    public static MsgOtherCouponContentDTO createWelfareCouponUsing(String orderId, BigDecimal money, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, null, null);
        dto.setOrderId(orderId);
        dto.setState("已经使用");
        dto.setFanLiMoney(money);
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponUsed(Integer leftDay,String desc, Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, startTime, endTime);
    public static MsgOtherCouponContentDTO createWelfareCouponUsed(String orderId, String desc, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, null, null);
        dto.setState("完成免单");
        dto.setDesc(desc);
        dto.setOrderId(orderId);
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponWillOutOfDate(Integer leftDay, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, "成功邀请1个队员", startTime, endTime);
        dto.setState("即将过期");
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, null, startTime, endTime);
        dto.setState("即将到期");
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponAlreadyOutOfDate(Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(0, "成功邀请1个队员", startTime, endTime);
    public static MsgOtherCouponContentDTO createWelfareCouponAlreadyOutOfDate(String source,Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, source, startTime, endTime);
        dto.setState("已经过期");
        return dto;
    }
    public static MsgOtherCouponContentDTO createWelfareCouponDrawBack(Integer leftDay, String orderId, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, null, startTime, endTime);
        dto.setState("已退回");
        dto.setOrderId(orderId);
        return dto;
    }
@@ -78,16 +90,21 @@
        return dto;
    }
    public static MsgOtherCouponContentDTO createCouponUsing(String source, Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, source, startTime, endTime);
        dto.setState("使用中,等待系统同步订单");
    public static MsgOtherCouponContentDTO createCouponUsing(String orderId, BigDecimal money, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, null, null);
        dto.setOrderId(orderId);
        dto.setState("已经使用");
        dto.setFanLiMoney(money);
        return dto;
    }
    public static MsgOtherCouponContentDTO createCouponUsed(Integer leftDay, String source, Date startTime,
    public static MsgOtherCouponContentDTO createCouponUsed(String orderId, String desc, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, source, startTime, endTime);
        dto.setState("已被使用");
        MsgOtherCouponContentDTO dto = getGeneral(null, null, null, null);
        dto.setState("完成免单");
        dto.setDesc(desc);
        dto.setOrderId(orderId);
        return dto;
    }
@@ -101,6 +118,14 @@
    public static MsgOtherCouponContentDTO createCouponAlreadyOutOfDate(String source, Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(0, source, startTime, endTime);
        dto.setState("已经过期");
        return dto;
    }
    public static MsgOtherCouponContentDTO createCouponDrawBack(Integer leftDay, String orderId, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, null, startTime, endTime);
        dto.setState("已退回");
        dto.setOrderId(orderId);
        return dto;
    }
@@ -120,23 +145,25 @@
        return dto;
    }
    public static MsgOtherCouponContentDTO createRewardCouponUsed(Integer leftDay, String source, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(null, source, startTime, endTime);
        dto.setState("已被使用");
    public static MsgOtherCouponContentDTO createRewardCouponUsed(BigDecimal oldFanLiMoney,BigDecimal rewardMoney,String orderId) {
        MsgOtherCouponContentDTO dto = getGeneral(null, null, null, null);
        dto.setState("成功使用");
        dto.setOrderFanLiMoney(oldFanLiMoney);
        dto.setRewardMoney(rewardMoney);
        dto.setOrderId(orderId);
        return dto;
    }
    public static MsgOtherCouponContentDTO createRewardCouponWillOutOfDate(Integer leftDay, String source,
            Date startTime, Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(leftDay, source, startTime, endTime);
        dto.setState("即将过期");
        dto.setState("即将到期");
        return dto;
    }
    public static MsgOtherCouponContentDTO createRewardCouponAlreadyOutOfDate(String source, Date startTime,
            Date endTime) {
        MsgOtherCouponContentDTO dto = getGeneral(0, source, startTime, endTime);
        MsgOtherCouponContentDTO dto = getGeneral(null, source, startTime, endTime);
        dto.setState("已经过期");
        return dto;
    }
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java
@@ -469,11 +469,25 @@
            if (dto.getFanLiMoney() != null) {
                contentList = new ArrayList<>();
                contentList.add(new ClientTextStyleVO(MoneyBigDecimalUtil.getWithNoZera(dto.getFanLiMoney()) + "",
                contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(dto.getFanLiMoney()),
                        COLOR_CONTENT));
                items.add(new CommonMsgItemVO(new ClientTextStyleVO("预估返利", COLOR_TITLE), contentList));
            }
            if (dto.getOrderFanLiMoney() != null) {
                contentList = new ArrayList<>();
                contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(dto.getOrderFanLiMoney()),
                        COLOR_CONTENT));
                items.add(new CommonMsgItemVO(new ClientTextStyleVO("订单返利", COLOR_TITLE), contentList));
            }
            if (dto.getRewardMoney() != null) {
                contentList = new ArrayList<>();
                contentList.add(new ClientTextStyleVO("¥" + MoneyBigDecimalUtil.getWithNoZera(dto.getRewardMoney()),
                        COLOR_HIGHLIGHT_CONTENT));
                items.add(new CommonMsgItemVO(new ClientTextStyleVO("奖励金", COLOR_TITLE), contentList));
            }
            if (!StringUtil.isNullOrEmpty(dto.getSource())) {
                contentList = new ArrayList<>();
                contentList.add(new ClientTextStyleVO(dto.getSource() + "", COLOR_CONTENT));