service层代码:
public Result getDataSetList(String dataCode, String dataName, int pageIndex, int length) { Map map = new HashMap(); map.put("dataCode", dataCode); map.put("dataName", dataName); PageHelper.startPage(pageIndex, length); List<Map> dataSetList = dataSetMapper.selectDataSetList(map); PageInfo pageInfo = new PageInfo(dataSetList); return Result.operating("数据集合查询成功", true, Result.SUCCESS, pageInfo.getList(), (int) pageInfo.getTotal(), pageInfo.getPages()); }