Commit ed44ecc1 authored by ZWT's avatar ZWT

feat(能源管理系统): 基础信息配置

1.修改基础信息配置--输电线路配置模块查询井口列表接口,增加返回结果参数,修改查询逻辑,完成接口冒烟测试同时修改接口文档;
2.修改基础信息配置模块业务工具类,增加匹配查询字典名称方法;
3.修改基础信息配置模块业务工具类,增加匹配查询地区名称方法;
4.修改基础信息配置模块业务工具类,增加匹配查询组织名称方法;
5.修改基础信息配置--市电峰谷配置模块详情接口,增加时段类型值返回结果字段;
6.修改基础信息配置--市电峰谷配置模块表结构字段类型,同时更新相应代码,修改部分接口业务处理逻辑,重新完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent eff0dd4e
......@@ -34,6 +34,7 @@ import xstartup.feature.api.annotation.XApiGet;
import xstartup.feature.api.annotation.XApiPost;
import xstartup.helper.XTransactionHelper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
......@@ -221,7 +222,11 @@ public class BasePriceStrategyService {
Map<String, List<GetBasePriceStrategyDetailOutput>> collect = detailOutputs.stream()
.collect(Collectors.groupingBy(GetBasePriceStrategyDetailOutput::getStrategyMonth));
for (GetBasePriceStrategyMonthOutput monthOutput : months) {
monthOutput.setDetails(collect.get(monthOutput.getStrategyMonth()));
if (collect.containsKey(monthOutput.getStrategyMonth())) {
monthOutput.setDetails(collect.get(monthOutput.getStrategyMonth()));
} else {
monthOutput.setDetails(new ArrayList<>(0));
}
}
}
output.setMonths(months);
......
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