@ -309,13 +309,13 @@ public abstract class DesignModelAdapter<T extends BaseBook, S extends JTemplate
} else {
parameterProviders = entry . getValue ( ) ;
}
if ( filter ! = null ) {
ParameterApplyHelper . addPara2Map ( map , parameterProviders , filter ) ;
} else {
ParameterApplyHelper . addPara2Map ( map , parameterProviders ) ;
updateParaMap ( map , parameterProviders , filter ) ;
}
// 处理非初始化(已存在数据集参数)时 添加逻辑
if ( ! tableDataParametersMap . containsKey ( tdName ) ) {
providers = DataOperator . getInstance ( ) . getTableDataParameters ( tableData ) ;
updateParaMap ( map , providers , filter ) ;
}
} catch ( Exception e ) {
FineLoggerFactory . getLogger ( ) . error ( e . getMessage ( ) , e ) ;
@ -327,6 +327,17 @@ public abstract class DesignModelAdapter<T extends BaseBook, S extends JTemplate
}
}
/ * *
* 更新全部参数中的数据集参数
* /
private void updateParaMap ( Map < String , ParameterProvider > map , ParameterProvider [ ] parameterProviders , Filter < ParameterProvider > filter ) {
if ( filter ! = null ) {
ParameterApplyHelper . addPara2Map ( map , parameterProviders , filter ) ;
} else {
ParameterApplyHelper . addPara2Map ( map , parameterProviders ) ;
}
}
protected void addGlobalParameters ( Map < String , ParameterProvider > map ) {
// 添加全局参数
Parameter [ ] glbParas = ParameterConfig . getInstance ( ) . getGlobalParameters ( ) ;