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>