From e8e2e233af733ca3ba625223e2fd2255165e6b70 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 02 四月 2020 16:49:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java | 29 +---------------------------- 1 files changed, 1 insertions(+), 28 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java index 4e63e56..a22c6fe 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgOtherDetailServiceImpl.java @@ -37,34 +37,7 @@ 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); - }else if (detail.getType() == MsgTypeOtherTypeEnum.vipUpgradeReward) { + } else { msgOtherDetailMapper.insertSelective(detail); userMsgReadStateService.addOtherMsgUnReadCount(detail.getUser().getId(), 1); } -- Gitblit v1.8.0