注册

mybatis-plus查询时,报错不是groupBy表达式

神经蛙 2023/10/20 852 2

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:win10
【CPU】:
【问题描述】*:使用mybatis-plus的mapper查询时报错
代码如下:List<String>appIdList=appMapper.selectList(Wrappers.<APP>lambdaQuery().eq(APP::getStatus,0).gruopBy(APP::getId)).stream().map(APP::getId).collect(Collectors.toList());

执行语句:select id,status,user_name from app where status=0 group by id

报错:不是gruop by 表达式

回答 0
暂无回答
扫一扫
联系客服