| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.service.inter.msg.MsgOverViewsService; |
| | | import com.yeshi.fanli.util.factory.msg.MsgOverViewsFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | @Resource |
| | | private MsgExtraService msgExtraService; |
| | | |
| | | |
| | | @Resource |
| | | private MsgOverViewsService msgOverViewsService; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | detail.setRead(false); |
| | | msgAccountDetailMapper.insertSelective(detail); |
| | | |
| | | |
| | | //加入消息索引 |
| | | msgOverViewsService.save(MsgOverViewsFactory.create(detail)); |
| | | // 消息内容 |
| | | msgExtraService.addMsgExtra(detail.getId(), detail.getExtraInfo(), MsgExtra.MSG_TYPE_ACCOUNT); |
| | | // 红点 |