MybatisPlus根据字段去重并保留其他字段 //根据字段A和B去重,查询A,B,C,D四个字段 select A,B,group_concat(','),C,D from table group by A,B https://blog.csdn.net/wang1qqqq/article/details/115241993