serviceImpl
@Override
public IPage<Role> findAll(int page,int pageSize){
Page<Role> p = new Page<>();
Map<String,Object> columnMap = new HashMap<>();
//写表中的列名
columnMap.put("del_flag","0");
p.setRecords(roleMapper.selectByMap(columnMap));
return p;
}
service
IPage<Role> findAll(int page,int pageSize);