瀏覽代碼

初始

master
郑根木 2 年之前
父節點
當前提交
dd17bc75e8
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/DefaultSaveHandler.java

+ 4
- 2
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/DefaultSaveHandler.java 查看文件

@@ -80,8 +80,10 @@ public class DefaultSaveHandler<T extends DefaultEntity> extends AbstractSaveHan
dao.insertEntity(bean);
} else {
dao.updateEntity(bean);

listTreeBean = TreeHelper.getTreeHelper(tableName).resetTreeLevel(bean);
ModelTable table = ModelTableCache.getInstance().getByName(tableName);
if (table.getType() == TableType.TYPE_TREE) {
listTreeBean = TreeHelper.getTreeHelper(tableName).resetTreeLevel(bean);
}
}
}



Loading…
取消
儲存