update 对接内蒙古平台

This commit is contained in:
2024-04-22 17:01:07 +08:00
parent 51778b9145
commit 2e5cf55916

View File

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