|
@@ -68,7 +68,7 @@ public class ZComprehensiveServiceImpl implements IZComprehensiveService {
|
|
|
// return PageUtils.buildDataInfo(list);
|
|
|
Page<ZComprehensiveVo> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());
|
|
|
Page<ZComprehensiveVo> result = baseMapper.queryPageList(bo,page,pageQuery.getPageNum(), pageQuery.getPageSize());
|
|
|
- page.setTotal(result.getRecords() != null ? result.getRecords().get(0).getTotal():0);
|
|
|
+ page.setTotal((result.getRecords() != null&&!result.getRecords().isEmpty()) ? result.getRecords().get(0).getTotal():0);
|
|
|
return TableDataInfo.build(result);
|
|
|
}
|
|
|
|