Commit 8b4fb5d5 authored by duanruiming's avatar duanruiming

[add] 策略查询优化

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