代码优化

This commit is contained in:
马三炮 2025-04-14 16:04:00 +08:00
parent c9d58da3af
commit 14e957b2aa
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public class CoordinatePhotoServiceImpl implements CoordinatePhotoService {
coordinatePhotoVo.setSysFileResourceList(sysFileResourceList); coordinatePhotoVo.setSysFileResourceList(sysFileResourceList);
} }
PageInfo<CoordinatePhotoVo> pageInfo = new PageInfo<>(list); PageInfo<CoordinatePhotoVo> pageInfo = new PageInfo<>(list);
return ServerResponse.createSuccess(pageInfo); return ServerResponse.createSuccessPage(pageInfo,data.getPageNum(),data.getPageSize());
} catch (Exception e) { } catch (Exception e) {
log.error(e.toString(), e); log.error(e.toString(), e);
return ServerResponse.createErroe("查询失败"); return ServerResponse.createErroe("查询失败");

View File

@ -53,7 +53,7 @@ public class ImportantMatterServiceImpl implements ImportantMatterService {
importantMatterVo.setSysFileResourceList(sysFileResourceList); importantMatterVo.setSysFileResourceList(sysFileResourceList);
} }
PageInfo<ImportantMatterVo> pageInfo = new PageInfo<>(list); PageInfo<ImportantMatterVo> pageInfo = new PageInfo<>(list);
return ServerResponse.createSuccess(pageInfo); return ServerResponse.createSuccessPage(pageInfo,data.getPageNum(),data.getPageSize());
} catch (Exception e) { } catch (Exception e) {
log.error(e.toString(), e); log.error(e.toString(), e);
return ServerResponse.createErroe("查询失败"); return ServerResponse.createErroe("查询失败");

View File

@ -53,7 +53,7 @@ public class SafetyMeasuresServiceImpl implements SafetyMeasuresService {
safetyMeasuresVo.setSysFileResourceList(sysFileResourceList); safetyMeasuresVo.setSysFileResourceList(sysFileResourceList);
} }
PageInfo<SafetyMeasuresVo> pageInfo = new PageInfo<>(list); PageInfo<SafetyMeasuresVo> pageInfo = new PageInfo<>(list);
return ServerResponse.createSuccess(pageInfo); return ServerResponse.createSuccessPage(pageInfo,data.getPageNum(),data.getPageSize());
} catch (Exception e) { } catch (Exception e) {
log.error(e.toString(), e); log.error(e.toString(), e);
return ServerResponse.createErroe("查询失败"); return ServerResponse.createErroe("查询失败");