@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; }
0条评论
我要评论