| | |
| | |
|
| | | @Override
|
| | | public void addMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException {
|
| | |
|
| | | if (detail.getType() == MsgTypeOtherTypeEnum.couponMianDan
|
| | | || detail.getType() == MsgTypeOtherTypeEnum.couponReward
|
| | | || detail.getType() == MsgTypeOtherTypeEnum.couponWelfareMianDan) {
|
| | |
| | | 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);
|
| | | }
|
| | | }
|
| | |
|