Commit ebb9a510 authored by tianbo's avatar tianbo

大屏-纳管率修改

parent 9cf458ef
......@@ -11,11 +11,13 @@ import java.util.List;
public class EquCategoryVo {
public String value;
public String label;
public String title;
public List<EquCategoryVo> children;
public EquCategoryVo(String label, String value) {
public EquCategoryVo(String label, String value, List<EquCategoryVo> children) {
this.label = label;
this.value = value;
this.title = label;
this.children = children;
}
}
\ No newline at end of file
}
......@@ -331,7 +331,7 @@ public class StCommonServiceImpl {
*/
private EquCategoryVo createEquCategoryVo(List<EquipmentCategoryDto> equipmentCategoryList) {
List<EquCategoryVo> children = equipmentCategoryList.stream()
.map(dto -> new EquCategoryVo(dto.getName(), dto.getCode()))
.map(dto -> new EquCategoryVo(dto.getName(), dto.getCode(), null))
.collect(Collectors.toList());
return new EquCategoryVo(null, "全部设备", children);
}
......
......@@ -1013,7 +1013,7 @@ public class ZLDPStatisticsServiceImpl {
return Lists.newArrayList();
}
return equipmentCategoryList.stream()
.map(dto -> new EquCategoryVo(dto.getName(), dto.getCode()))
.map(dto -> new EquCategoryVo(dto.getName(), dto.getCode(), null))
.collect(Collectors.toList());
}
}
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