2020
12-29
12-29
Mybatis plus实现Distinct去重功能
不??拢?喜?/p>QueryWrapperqueryWrapper=newQueryWrapper();queryWrapper.select("DISTINCTno,name").orderByAsc("no");returnmapper.selectList(queryWrapper);PS:顺便一提,指明查询出后的结果输出类型,可以参考如下:QueryWrapper<TablePo>queryWrapper=newQueryWrapper<>();queryWrapper.select("DISTINCTno,name").orderByAsc("no");returnmapper.selectList(queryWrapper);distinct去重复查询的使用查询...
继续阅读 >