提交 27660f34 编写于 作者: zhouweidong's avatar zhouweidong

数据查询上下文参数转换

上级 d5bde3b0
...@@ -200,9 +200,9 @@ TARGET=PSDATAENTITY ...@@ -200,9 +200,9 @@ TARGET=PSDATAENTITY
<#assign resultParam=contextParam?replace('$\{srfdatacontext(\'','#\{srf.datacontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>数据上下文</#comment> <#assign resultParam=contextParam?replace('$\{srfdatacontext(\'','#\{srf.datacontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>数据上下文</#comment>
<#assign resultParam=resultParam?replace('$\{srfsessioncontext(\'','#\{srf.sessioncontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>用户上下文</#comment> <#assign resultParam=resultParam?replace('$\{srfsessioncontext(\'','#\{srf.sessioncontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>用户上下文</#comment>
<#assign resultParam=resultParam?replace('$\{srfwebcontext(\'','#\{srf.webcontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>网页请求上下文</#comment> <#assign resultParam=resultParam?replace('$\{srfwebcontext(\'','#\{srf.webcontext.')?replace("','\\{[\\S]*}'\\)}","\\}","r")><#comment>网页请求上下文</#comment>
<#assign contextParams=resultParam.matches("#\\{srf.[\\S]*}")> <#assign params=resultParam.matches("#\\{srf.[\\S]*}")>
<#list contextParams as contextParam> <#list params as param>
<#assign resultParam=resultParam?replace(contextParam,contextParam?lower_case)><#comment>将上下文参数转小写</#comment> <#assign resultParam=resultParam?replace(param,param?lower_case)><#comment>将上下文参数转小写</#comment>
</#list> </#list>
<#return resultParam> <#return resultParam>
</#function> </#function>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册