| | |
| | | import com.yeshi.fanli.dao.mybatis.msg.UserMsgUnReadNumMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgAccountDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgInviteDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgMoneyDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgOrderDetailService;
|
| | | import com.yeshi.fanli.service.inter.money.msg.MsgMoneyDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.MsgOtherDetailService;
|
| | | import com.yeshi.fanli.service.inter.msg.UserMsgReadStateService;
|
| | | import com.yeshi.fanli.service.inter.msg.UserSystemMsgService;
|
| | | import com.yeshi.fanli.service.inter.order.msg.MsgOrderDetailService;
|
| | | import com.yeshi.fanli.service.inter.user.invite.MsgInviteDetailService;
|
| | | import com.yeshi.fanli.service.inter.user.msg.MsgAccountDetailService;
|
| | |
|
| | | @Service
|
| | | public class UserMsgReadStateServiceImpl implements UserMsgReadStateService {
|
| | |
| | |
|
| | | @Resource
|
| | | private MsgMoneyDetailService msgMoneyDetailService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private MsgOtherDetailService msgOtherDetailService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private UserSystemMsgService userSystemMsgService;
|
| | |
|
| | |
| | | update.setUpdateTime(new Date());
|
| | | userMsgUnReadNumMapper.updateByPrimaryKeySelective(update);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public void addOtherMsgUnReadCount(Long uid, int count) {
|
| | | UserMsgUnReadNum num = getUserMsgUnReadNum(uid);
|
| | |
| | | update.setTypeOrder(0);
|
| | | update.setTypeScore(0);
|
| | | update.setTypeSystem(0);
|
| | | update.setTypeOrder(0);
|
| | | update.setUpdateTime(new Date());
|
| | | update.setGuanXuanReadTime(new Date());
|
| | | userMsgUnReadNumMapper.updateByPrimaryKeySelective(update);
|
| | | readAccountMsg(uid);
|
| | | readOrderMsg(uid);
|
| | | readMoneyMsg(uid);
|
| | | readInviteMsg(uid);
|
| | | readUserSystemMsg(uid);
|
| | | readOtherMsg(uid);
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | userMsgUnReadNumMapper.updateByPrimaryKeySelective(update);
|
| | | }
|
| | |
|
| | |
|
| | | @Override
|
| | | public void updateSelective(UserMsgUnReadNum num) {
|
| | | if (num != null)
|
| | | userMsgUnReadNumMapper.updateByPrimaryKeySelective(num);
|
| | | }
|
| | |
|
| | | }
|