diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java index a0164353..bf7fb37e 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java @@ -343,7 +343,7 @@ public class TypeServiceImpl implements ITypeService { // --- 数据校验 ---- if (whHouseSet == null || whHouseSet.getTypeId() == null) { continue; } // 构造函数定义0级Tree对象 - TreeSelect thisTree = new TreeSelect(whHouseSet.getId(),whHouseSet.getHouseName(),0,null); + TreeSelect thisTree = new TreeSelect(whHouseSet.getHouseId(),whHouseSet.getHouseName(),0,null); // 从Map中直接获取对应的1级节点 TreeSelect oneLevelTree = maTypeMap.get(whHouseSet.getTypeId()); // 转换为集合存入0级Tree对象中