StringresultParam=getJavaSqlCode(contextParam).replaceAll("<#assign _value=srf(datacontext|sessioncontext|webcontext)\\('(\\w+)','(.*?)'\\)><#if _value\\?length gt 0>(.*?)\\(\\$\\{_value}\\)<#else>1=1</#if>"," ('${srf.$1.$2}'=null or '${srf.$1.$2}'='' or $4 \\${srf.$1.$2} ");
resultParam=resultParam.replaceAll("<#assign _value=srf(datacontext|sessioncontext|webcontext)\\('(\\w+)','(.*?)'\\)><#if _value\\?length gt 0>(.*?)\\$\\{_value}(.*?)?<#else>1=1</#if>"," (#{srf.$1.$2}=null or #{srf.$1.$2}='' or $4#{srf.$1.$2}$5)");
UPDATE ${schema.name} SET <foreachcollection="schema.baseColumnMap"item="value"index="key"separator=","><iftest="data.keys.contains(value)">${key}= #{data[${value}]}</if></foreach>
WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{data[${value}]}</foreach>
UPDATE ${schema.name} SET <foreachcollection="schema.baseColumnMap"item="value"index="key"separator=","><iftest="data.keys.contains(value)">${key}= #{item[${value}]}</if></foreach>
WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${value}]}</foreach>
(<foreachcollection="schema.keyMap"item="value"index="key"separator=",">${key}</foreach>) in (<foreachcollection="list"item="item"index="index"separator=",">(<foreachcollection="schema.keyMap"item="value"index="key"separator=",">#{item[${value}]}</foreach>)</foreach>)
select <foreachcollection="schema.keyMap"item="value"index="key"separator=",">${key}</foreach> from ${schema.name} t1 where
<iftest="schema.logicValidColumn!=null">
${schema.logicValidCond} and
</if>
(<foreachcollection="schema.keyMap"item="value"index="key"separator=",">${key}</foreach>) in (<foreachcollection="list"item="item"index="index"separator=",">(<foreachcollection="schema.keyMap"item="value"index="key"separator=",">#{item[${value}]}</foreach>)</foreach>)
UPDATE ${schema.name} SET ${schema.logicValidDelCond} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{data[${value}]}</foreach>
UPDATE ${schema.name} SET ${schema.logicValidDelCond} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${value}]}</foreach>
</if>
<iftest="schema.logicValidColumn==null">
DELETE FROM ${schema.name} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${value}]}</foreach>