|
|
@@ -24,7 +24,8 @@ public class DynPageProvider extends AbstractCompProvider { |
|
|
|
SqlNamedPara sqlPara = DynPageHelper.buildSelectSql(pageDataSet, filter); |
|
|
|
SwMap map = DbEngine.getInstance().queryEntityN(sqlPara.sql, sqlPara.mapParas, SwMap.class); |
|
|
|
if (map == null) { |
|
|
|
throw new BizException("没有找到指定数据(ds=" + pageDataSet.name + ")"); |
|
|
|
return new SwMap(); |
|
|
|
//throw new BizException("没有找到指定数据(ds=" + pageDataSet.name + ")"); |
|
|
|
} |
|
|
|
ModelTable masterTable = ModelTableCache.getInstance().get(pageDataSet.masterTable); |
|
|
|
EntityHelper.loadBeanText(masterTable.getName(), map, sqlPara.mapFieldAlias); |
|
|
|