puzhibing
2024-03-04 7e7f901b2172281dc294dfbc67e6ad00625f09f4
cloud-server-management/src/main/java/com/dsh/course/mapper/TNoticesMapper.java
New file
@@ -0,0 +1,37 @@
package com.dsh.course.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsh.course.entity.TNotices;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface TNoticesMapper extends BaseMapper<TNotices> {
    /**
     * 获取公告列表
     * @param type
     * @return
     */
    List<TNotices> queryNotices(@Param("type") Integer type);
    /**
     * 获取用户的公告数据
     * @param pageNum
     * @param size
     * @param uid
     * @return
     */
    List<Map<String, Object>> queryList(@Param("pageNum") Integer pageNum, @Param("size") Integer size,
                                        @Param("uid") Integer uid, @Param("userType") Integer userType,@Param("language") Integer language);
    List<Map<String,Object>> getRollingNoticeList(@Param("page") Page<Map<String, Object>> page,
                                                  @Param("beginTime") String beginTime,
                                                  @Param("endTime") String endTime,
                                                  @Param("typeValue") Integer typeValue,
                                                  @Param("content") String content, @Param("yy") Integer yy);
}