Administrator
2020-02-23 388be9f734f5b80c348bcc956726c206002e832a
fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java
@@ -37,6 +37,33 @@
            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);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.couponActivate) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.firstOrderReward) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      }else if (detail.getType() == MsgTypeOtherTypeEnum.systemGive) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.taoLiJinExchange) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      } else if (detail.getType() == MsgTypeOtherTypeEnum.passVIPApply
            || detail.getType() == MsgTypeOtherTypeEnum.rejectVIPApply
            || detail.getType() == MsgTypeOtherTypeEnum.teamVIPCallBoss
            || detail.getType() == MsgTypeOtherTypeEnum.teamSplitCallBoss) {
         msgOtherDetailMapper.insertSelective(detail);
         userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1);
      }
   }