医院废弃物信息化管理平台
“mitao”
2026-01-14 ce8e86e7045a6eadc2f06d3cd1af90d22b04fdd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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);
 
}