cloud-modules-system/src/main/java/com/muyu/system/mapper/SysNoticeMapper.java

92 lines
2.1 KiB
Java

package com.muyu.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.system.domain.SysNotice;
import com.muyu.system.domain.resp.NoticeResp;
import com.muyu.system.domain.resp.NoticeUserResp;
import org.apache.ibatis.annotations.Param;
import java.util.ArrayList;
import java.util.List;
/**
* 通知公告表 数据层
*
* @author muyu
*/
public interface SysNoticeMapper {
/**
* 查询公告信息
*
* @param noticeId 公告ID
*
* @return 公告信息
*/
public SysNotice selectNoticeById (Long noticeId);
/**
* 查询公告列表
*
* @param notice 公告信息
*
* @return 公告集合
*/
public List<SysNotice> selectNoticeList (SysNotice notice);
/**
* 新增公告
*
* @param notice 公告信息
*
* @return 结果
*/
public int insertNotice (SysNotice notice);
/**
* 修改公告
*
* @param notice 公告信息
*
* @return 结果
*/
public int updateNotice (SysNotice notice);
/**
* 批量删除公告
*
* @param noticeId 公告ID
*
* @return 结果
*/
public int deleteNoticeById (Long noticeId);
/**
* 批量删除公告信息
*
* @param noticeIds 需要删除的公告ID
*
* @return 结果
*/
public int deleteNoticeByIds (Long[] noticeIds);
/**
* 根据用户ID查询用户的通知阅读状态
* @param userId
* @return
*/
List<NoticeUserResp> selNoticeByUserId(@Param("userId") Long userId);
int updateNoticeSta(@Param("noticeId") Long noticeId, @Param("userId") Long userId);
NoticeUserResp findNoticeByNoticeIdAndUserId(@Param("noticeId") Long noticeId, @Param("userId") Long userId);
NoticeResp findNoticeByNoticeId(@Param("noticeId") Long noticeId);
List<Integer> selUserByDeptIds(@Param("deptIds") ArrayList<Integer> deptIds);
List<Integer> findUserIdsAll();
Integer insertNoticeUser(@Param("noticeId") Long noticeId, @Param("userIds") int[] userIds);
}