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());
    }

 

posted on 2020-10-30 16:30  周文豪  阅读(240)  评论(0编辑  收藏  举报