From 2e5cf559160ca5521c44944ccf2f1f88b34caf43 Mon Sep 17 00:00:00 2001 From: Guoqs Date: Mon, 22 Apr 2024 17:01:07 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AF=B9=E6=8E=A5=E5=86=85=E8=92=99?= =?UTF-8?q?=E5=8F=A4=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../neimenggu/service/NeiMengGuPlatformServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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);