Commit 8b4fb5d5 authored by duanruiming's avatar duanruiming

[add] 策略查询优化

parent 2c828685
...@@ -1195,6 +1195,7 @@ public class StrategyControlServiceImpl implements StrategyControlService { ...@@ -1195,6 +1195,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
if (StringUtils.isNotBlank(currentName)) { if (StringUtils.isNotBlank(currentName)) {
strategyNameCrossVO.setCurrentName(currentName); strategyNameCrossVO.setCurrentName(currentName);
} else { } else {
if (!CollectionUtils.isEmpty(factoryEntities)) {
StrategyFactoryEntity strategyFactoryEntity = factoryEntities.get(0); StrategyFactoryEntity strategyFactoryEntity = factoryEntities.get(0);
String company = strategyFactoryEntity.getCompany(); String company = strategyFactoryEntity.getCompany();
String strategyName = strategyFactoryEntity.getStrategyName(); String strategyName = strategyFactoryEntity.getStrategyName();
...@@ -1202,6 +1203,7 @@ public class StrategyControlServiceImpl implements StrategyControlService { ...@@ -1202,6 +1203,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
String name = String.join("-", company, method, strategyName); String name = String.join("-", company, method, strategyName);
strategyNameCrossVO.setCurrentName(name); strategyNameCrossVO.setCurrentName(name);
} }
}
strategyNameCrossVO.setStrategyNames(strategyNames); strategyNameCrossVO.setStrategyNames(strategyNames);
} }
return jsonViewObject.success(strategyNameCrossVO); return jsonViewObject.success(strategyNameCrossVO);
......
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