调用自定义方式

getBaseMapper() 適合项目较小,且仅需简单调用
使用 @Autowired 注入 Mapper 需要更高可读性的场景,提高代码的清晰度和可维护性
List<ApArticle> apArticles = getBaseMapper().loadArticleList(dto, type);
@Autowired
private ApArticleMapper apArticleMapper;
List<ApArticle> apArticles = apArticleMapper.loadArticleList(dto, type);