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}= #{data[${key}]}</if></foreach>
WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{data[${key}]}</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>
UPDATE ${schema.name} SET <foreachcollection="schema.baseColumnMap"item="value"index="key"separator=","><iftest="data.keys.contains(value)">${key}= #{item[${key}]}</if></foreach>
WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${key}]}</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>)
(<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[${key}]}</foreach>)</foreach>)
select <foreachcollection="schema.keyMap"item="value"index="key"separator=",">${key} as ${value}</foreach> from ${schema.name} t1 where
select <foreachcollection="schema.keyMap"item="value"index="key"separator=",">${key} as ${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>)
(<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[${key}]}</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}= #{data[${key}]}</foreach>
</if>
<iftest="schema.logicValidColumn==null">
DELETE FROM ${schema.name} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{data[${value}]}</foreach>
DELETE FROM ${schema.name} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{data[${key}]}</foreach>
UPDATE ${schema.name} SET ${schema.logicValidDelCond} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${value}]}</foreach>
UPDATE ${schema.name} SET ${schema.logicValidDelCond} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${key}]}</foreach>
</if>
<iftest="schema.logicValidColumn==null">
DELETE FROM ${schema.name} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${value}]}</foreach>
DELETE FROM ${schema.name} WHERE <foreachcollection="schema.keyMap"item="value"index="key"separator="and">${key}= #{item[${key}]}</foreach>