JavaEE
(1)
收藏
我要回答
@Override public List<Admin> selectDistinct() { QueryWrapper<Admin> queryWrapper = new QueryWrapper<>(); queryWrapper.select("distinct *"); queryWrapper.lambda().gt(Admin::getLoginCount,0); queryWrapper.lambda().eq(Admin::getEnable,true); List<Admin> admins = adminMapper.selectList(queryWrapper); return admins; }
1个回答
我要回答