Commit 6c350305 authored by ZWT's avatar ZWT

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

1.修改基础信息配置--输电线路配置模块查询输电线路分页列表接口,优化代码;
2.修改基础信息配置--输电线路配置模块查询输电线路井口列表接口,优化代码;
3.修改基础信息配置--输电线路配置模块查询输电线路详情接口,优化代码;
4.修改基础信息配置--市电峰谷配置模块查询市电峰谷详情接口,优化代码;
5.修改基础信息配置模块字典工具类,优化代码;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 5c8be45e
......@@ -7,7 +7,6 @@ import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod;
import org.apache.commons.lang3.StringUtils;
import pps.cloud.system.service.data.GetSysAreaOutput;
import pps.cloud.system.service.data.QuerySysDictionaryViewOutput;
import pps.core.base.entity.*;
import pps.core.base.mapper.*;
import pps.core.base.service.data.base_price_strategy.*;
......@@ -212,11 +211,11 @@ public class BasePriceStrategyService {
BasePriceStrategyDetailEnt::getInternalSettlementPrice)
.eq(BasePriceStrategyDetailEnt::getStrategyId, strategyId));
if (CollUtil.isNotEmpty(detailEntList)) {
List<QuerySysDictionaryViewOutput> dictList = DictUtils.getDictList(context, DictTypeConstant.TIME_FRAME);
Map<String, String> dictMap = DictUtils.getDictMap(context, DictTypeConstant.TIME_FRAME);
List<GetBasePriceStrategyDetailOutput> detailOutputs = XCopyUtils.copyNewList(detailEntList, GetBasePriceStrategyDetailOutput.class);
for (GetBasePriceStrategyDetailOutput detailOutput : detailOutputs) {
detailOutput.setPeriodTypeValue(
DictUtils.getDicNameByStream(dictList, detailOutput.getPeriodTypeKey())
dictMap.get(detailOutput.getPeriodTypeKey())
);
}
Map<String, List<GetBasePriceStrategyDetailOutput>> collect = detailOutputs.stream()
......
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