NewsMapper.java 651 B

1234567891011121314151617181920212223242526
  1. package com.redxun.knowledge.mapper;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.redxun.knowledge.entity.dao.News;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import com.redxun.common.base.db.BaseDao;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.Map;
  8. /**
  9. * 业务--新闻表数据库访问层
  10. */
  11. @Mapper
  12. public interface NewsMapper extends BaseDao<News> {
  13. /**
  14. * 分页查询
  15. * @param page
  16. * @param params
  17. * @return
  18. */
  19. IPage findAllNews(IPage<News> page,@Param("w") Map<String, Object> params);
  20. IPage findAllPcNews(IPage page,@Param("params") Map<String,Object> params);
  21. }