Commit 75668d8a authored by Administrator's avatar Administrator

-

parent 52482a33
......@@ -15,6 +15,8 @@ import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
......@@ -83,6 +85,23 @@ public class EconomicServiceImpl implements EconomicService {
@Override
public AjaxResult statisticsRegional(OpRegionalEconomicDataStatisticsRegionalDto dto) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/economic/statistics/regional", BeanUtil.beanToMap(dto, false, false));
//20230721 TODO:临时代码 待删除
Integer code = MapUtils.getInteger(map, "code", 300);
if (!code.equals(HttpStatus.OK.value())) {
throw new RuntimeException();
}
Object data = map.get("data");
if (ObjectUtil.isNotEmpty(data)) {
List<Map<String, Object>> mapList = (ArrayList)data;
for (Map<String, Object> recentlyYearMap : mapList) {
Map<String, Object> recently = (Map<String, Object>)recentlyYearMap.get("recentlyYear");
recently.put("gdpGrowthCompare", "-10");
recently.put("govDebtBalanceCompare", "-10");
recently.put("gdpCompare", "-10");
recently.put("populationCompare", "-10");
recently.put("gbrCompare", "-10");
}
}
return BeanUtil.toBean(map, AjaxResult.class);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment