diff --git a/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java b/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java index 1916668f..a058de13 100644 --- a/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java @@ -201,6 +201,7 @@ public class ResultServiceImpl implements IResultService { TreeDataVO dtlType = new TreeDataVO(); dtlType.setIndex(index); dtlType.setScriptType(scriptDtlIndexList.get(0).getScriptType()); + dtlType.setScriptTypeCode(subKey); ratedScriptTypeName(scriptDtlIndexList, isValueType, dtlType, dictTree); dtlType.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList, false, isValueType).toString()); if (finalResultMap.containsKey(index)) { @@ -245,7 +246,7 @@ public class ResultServiceImpl implements IResultService { TreeDataVO dtlType = new TreeDataVO(); dtlType.setIndex(index); dtlType.setScriptType(scriptDtlIndexList.get(0).getScriptType()); - dtlType.setScriptTypeCode(scriptDtlIndexList.get(0).getScriptCode()); + dtlType.setScriptTypeCode(subKey); if ("Harm".equals(subKey)) { harmScriptTypeName(scriptDtlIndexList, dictTree, isValueType, dtlType); } @@ -298,6 +299,7 @@ public class ResultServiceImpl implements IResultService { dlt.setScriptTypeName("特征幅值=" + dtls.getTransValue() + "%Un,持续时间=" + dtls.getRetainTime().intValue() + "周波"); dlt.setIndex(dtls.getScriptIndex()); dlt.setScriptType(scriptDtlIndexList.get(0).getScriptType()); + dlt.setScriptTypeCode("Base_" + start + "_" + end); dlt.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList, false, isValueType).toString()); if (finalResultMap.containsKey(dtls.getScriptIndex())) { dlt.setFly(conform(finalResultMap.get(dtls.getScriptIndex())));