diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/neimenggu/service/NeiMengGuPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/neimenggu/service/NeiMengGuPlatformServiceImpl.java index 640727151..4337e0162 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/neimenggu/service/NeiMengGuPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/neimenggu/service/NeiMengGuPlatformServiceImpl.java @@ -1,6 +1,5 @@ package com.jsowell.thirdparty.platform.neimenggu.service; -import cn.hutool.core.util.PageUtil; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import com.github.pagehelper.PageHelper; @@ -271,7 +270,7 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService { Map map = new LinkedHashMap<>(); map.put("PageNo", pageInfo.getPageNum()); map.put("PageCount", pageInfo.getPages()); - map.put("ItemSize", resultList.size()); + map.put("ItemSize", pageInfo.getTotal()); map.put("StationInfos", resultList); Map resultMap = ThirdPartyPlatformUtils.generateResultMap(map, thirdPartySecretInfoVO); return resultMap; @@ -345,11 +344,11 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService { .limit(pageSize) .collect(Collectors.toList()); - int total = StationStatusInfos.size(); - int pages = PageUtil.totalPage(total, pageSize); + // int total = StationStatusInfos.size(); + // int pages = PageUtil.totalPage(total, pageSize); Map map = new LinkedHashMap<>(); - map.put("Total", total); + // map.put("Total", total); map.put("StationStatusInfos", collect); Map resultMap = ThirdPartyPlatformUtils.generateResultMap(map, thirdPartySecretInfoVO);