package cn.besteam.modules.medical.mapper;
|
|
import cn.besteam.modules.medical.dto.MwNoticeDTO;
|
import cn.besteam.modules.medical.entity.MwNotice;
|
import cn.besteam.modules.medical.vo.MwNoticeVO;
|
import cn.besteam.modules.system.entity.SysUserRole;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 公告消息
|
*/
|
public interface MwNoticeMapper extends BaseMapper<MwNotice> {
|
|
/**
|
* 分页查询分页数据
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwNoticeVO> queryPageList(Page<MwNoticeVO> page, @Param("dto") MwNoticeDTO dto,
|
@Param("userId")Integer userId, @Param("userRoles") List<SysUserRole> userRoles);
|
|
/**
|
* 公告消息读取
|
* @param dto
|
* @return
|
*/
|
Boolean noticeReadInsert(@Param("dto") MwNotice dto);
|
|
/**
|
* 获取公告消息是否已经读取
|
* @param dto
|
* @return
|
*/
|
Integer getNoticeReadOneCount(@Param("dto") MwNotice dto);
|
|
/**
|
* 获取首页待办处理数据
|
* @param userRoles
|
* @param hospitalIdList
|
* @param userId
|
* @return
|
*/
|
List<Map<String,Long>> getIndexSchedule(@Param("userRoles")List<SysUserRole> userRoles,
|
@Param("hospitalIdList")List<Integer> hospitalIdList,
|
@Param("userId")Integer userId);
|
|
}
|