Browse Source

初始

master
郑根木 2 years ago
parent
commit
dd17bc75e8
1 changed files with 4 additions and 2 deletions
  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 View File

@@ -80,8 +80,10 @@ public class DefaultSaveHandler<T extends DefaultEntity> extends AbstractSaveHan
dao.insertEntity(bean); dao.insertEntity(bean);
} else { } else {
dao.updateEntity(bean); 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…
Cancel
Save