yujian
2019-08-27 d8359ddb48dab5cc797a9d552e11fde571f4920c
fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java
@@ -27,7 +27,6 @@
   @Override
   public void addMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException {
      if (detail.getType() == MsgTypeOtherTypeEnum.couponMianDan
            || detail.getType() == MsgTypeOtherTypeEnum.couponReward
            || detail.getType() == MsgTypeOtherTypeEnum.couponWelfareMianDan) {
@@ -38,6 +37,15 @@
            detail.setCreateTime(new Date());
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.taoLiJin) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.give) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.exchange) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      }
   }