|
|
@@ -1,5 +1,6 @@ |
|
|
|
package cc.smtweb.system.bpm.web.engine.dynPage; |
|
|
|
|
|
|
|
import cc.smtweb.framework.core.common.SwConsts; |
|
|
|
import cc.smtweb.framework.core.common.SwEnum; |
|
|
|
import cc.smtweb.framework.core.common.SwMap; |
|
|
|
import cc.smtweb.framework.core.db.DbEngine; |
|
|
@@ -51,8 +52,8 @@ public class DynPageTreeHandler extends AbstractTreeHandler<SwMap> { |
|
|
|
* 构建sql |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
protected SqlNamedPara buildDataSqlPara() { |
|
|
|
return DynPageHelper.buildTreeSelectSql(pageDataSet, filter); |
|
|
|
protected SqlNamedPara buildDataSqlPara(long id) { |
|
|
|
return DynPageHelper.buildTreeSelectSql(pageDataSet, filter, id); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -65,7 +66,8 @@ public class DynPageTreeHandler extends AbstractTreeHandler<SwMap> { |
|
|
|
|
|
|
|
@Override |
|
|
|
protected List<SwMap> getChildren(long id) { |
|
|
|
SqlNamedPara sqlPara = buildDataSqlPara(); |
|
|
|
if (id <= 0) id = SwConsts.DEF_ROOT_ID_LONG; |
|
|
|
SqlNamedPara sqlPara = buildDataSqlPara(id); |
|
|
|
return DbEngine.getInstance().queryN(sqlPara.sql, sqlPara.mapParas, SwMap.class); |
|
|
|
} |
|
|
|
|
|
|
|