zhangherong
2025-03-24 17f262abba94581573ac6954152a3f59234aaa76
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/util/FindsProductionsChildrenUtil.java
@@ -1,5 +1,6 @@
package org.jeecg.modules.system.util;
import cn.hutool.core.util.StrUtil;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.system.entity.MdcProduction;
import org.jeecg.modules.system.model.MdcProductionTreeModel;
@@ -25,6 +26,9 @@
        List<MdcProductionTreeModel> records = new ArrayList<>();
        for (int i = 0; i < recordList.size(); i++) {
            MdcProduction mdcProduction = recordList.get(i);
            if (StrUtil.isEmpty(mdcProduction.getDescription())){
                mdcProduction.setDescription("");
            }
            records.add(new MdcProductionTreeModel(mdcProduction));
        }
        List<MdcProductionTreeModel> tree = findChildren(records, idList);
@@ -63,6 +67,7 @@
                if (m.getParentId() != null && m.getParentId().equals(model.getId())) {
                    model.getChildren().add(m);
                    ProductionIdModel pim = new ProductionIdModel().convert(m);
                    idModel.setSelectable(false);
                    idModel.getChildren().add(pim);
                }
            }