脚本单独配置BC暂态时左侧树形列表展示不全问题
This commit is contained in:
@@ -341,10 +341,19 @@ public class ResultServiceImpl implements IResultService {
|
||||
private void dipScriptTypeName(List<PqScriptDtls> subValue, List<TreeDataVO> subTypeList, Map<Integer, Set<Integer>> finalResultMap, Boolean isValueType, String name, Integer start, Integer end) {
|
||||
List<TreeDataVO> info = new ArrayList<>();
|
||||
List<PqScriptDtls> dip = subValue.stream()
|
||||
.filter(x -> "Dip".equals(x.getValueType()) && "A".equals(x.getPhase()))
|
||||
// .filter(x -> "Dip".equals(x.getValueType()) && "A".equals(x.getPhase()))
|
||||
.filter(x -> "Dip".equals(x.getValueType()))
|
||||
.filter(x -> x.getTransValue() >= start && x.getTransValue() <= end)
|
||||
.sorted(Comparator.comparing(PqScriptDtls::getScriptIndex))
|
||||
.collect(Collectors.toList());
|
||||
LinkedHashMap<Integer, List<PqScriptDtls>> idxDipMap = dip.stream().collect(Collectors.groupingBy(d -> d.getScriptIndex(), LinkedHashMap::new, Collectors.toList()));
|
||||
|
||||
dip.clear();
|
||||
idxDipMap.forEach((idx, scriptDtlList) -> {
|
||||
scriptDtlList.sort(Comparator.comparing(PqScriptDtls::getPhase));
|
||||
dip.add(scriptDtlList.get(0));
|
||||
});
|
||||
|
||||
TreeDataVO vo = new TreeDataVO();
|
||||
vo.setScriptTypeName(name);
|
||||
vo.setScriptTypeCode("Base_" + start + "_" + end);
|
||||
@@ -1883,7 +1892,7 @@ public class ResultServiceImpl implements IResultService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ContrastTestItemVO> getCheckItem(String planId, String devId, String chnNum, Integer num,String code) {
|
||||
public List<ContrastTestItemVO> getCheckItem(String planId, String devId, String chnNum, Integer num, String code) {
|
||||
// PqDev dev = pqDevService.getById(devId);
|
||||
AdPlan plan = adPlanService.getById(planId);
|
||||
// String code = String.valueOf(plan.getCode());
|
||||
|
||||
Reference in New Issue
Block a user