Commit 44072d46 authored by zhoushiguang's avatar zhoushiguang

场景详细评价平均指标

parent 2d8d14d1
...@@ -569,10 +569,10 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH ...@@ -569,10 +569,10 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
if (Objects.nonNull(scopeList)) { if (Objects.nonNull(scopeList)) {
//补充 //补充
for (String scopeName1 : scopeList) { for (String scopeName1 : scopeList) {
if (!hasDataScopeList.contains(scopeName1) && scopeName1.indexOf(dirTurnDesc) > 0) { if (!hasDataScopeList.contains(scopeName1) && scopeName1.contains(dirTurnDesc)) {
CrossLaneDataHistPoExtend tmp = new CrossLaneDataHistPoExtend(); CrossLaneDataHistPoExtend tmp = new CrossLaneDataHistPoExtend();
tmp.setTurnTypeName(scopeName1.substring(dirTurnDesc.length())); tmp.setTurnTypeName(scopeName1.substring(dirTurnDesc.length()));
tmp.setTurnType(TurnConvertEnum.getKeyByCode(tmp.getTurnTypeName())); tmp.setTurnType(TurnConvertEnum.getKeyByDesc(tmp.getTurnTypeName()));
value.add(tmp); value.add(tmp);
} }
} }
......
...@@ -109,4 +109,13 @@ public enum TurnConvertEnum { ...@@ -109,4 +109,13 @@ public enum TurnConvertEnum {
return null; return null;
} }
public static Integer getKeyByDesc(String desc){
for (TurnConvertEnum e : TurnConvertEnum.values()) {
if(e.desc.equals(desc)){
return e.key;
}
}
return null;
}
} }
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