Commit 9fb2ccf5 authored by 麻笑宇's avatar 麻笑宇

Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into…

Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into develop_tzs_register_to_0715
parents 99acae12 755485eb
......@@ -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;
}
}
......@@ -331,8 +331,8 @@ 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);
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