package com.storlead.message.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.storlead.framework.mybatis.service.impl.MyBaseServiceImpl;
import com.storlead.message.pojo.entity.InsideMessageSendLogEntity;
import com.storlead.message.pojo.vo.MessageDetailVO;
import com.storlead.message.pojo.vo.MessageNoReadTotalVO;
import com.storlead.message.mapper.InsideMessageSendLogMapper;
import com.storlead.message.pojo.vo.MessageTypeReadStateVO;
import com.storlead.message.service.InsideMessageSendLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 内部消息人员接收记录表 服务实现类
 * </p>
 *
 * @author chenkq
 * @since 2024-04-19
 */
@Service
public class InsideMessageSendLogServiceImpl extends MyBaseServiceImpl<InsideMessageSendLogMapper, InsideMessageSendLogEntity> implements InsideMessageSendLogService {

    @Override
    public IPage<MessageDetailVO> queryListMessageLog(Page<InsideMessageSendLogEntity> page, Wrapper<InsideMessageSendLogEntity> wrapper) {
        return this.baseMapper.pageListMessageLog(page,wrapper);
    }

    @Override
    public MessageNoReadTotalVO countNoReadtotal(Wrapper<InsideMessageSendLogEntity> wrapper) {
        return this.baseMapper.countNoReadNumber(wrapper);
    }

    @Override
    public List<MessageTypeReadStateVO> getCountNoReadCount(Wrapper<InsideMessageSendLogEntity> wrapper) {
        return this.baseMapper.countNoReadCount(wrapper);
    }

}
