模板增加insertIgnoreBatch方法
This commit is contained in:
parent
bdd64e1a89
commit
e1c1ae0439
@ -8,4 +8,22 @@
|
|||||||
)t
|
)t
|
||||||
${r"${ew.customSqlSegment}"}
|
${r"${ew.customSqlSegment}"}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertIgnoreBatch">
|
||||||
|
INSERT IGNORE INTO ${tableName}
|
||||||
|
(
|
||||||
|
<#list originalColumns as column>
|
||||||
|
${column.fieldDbName?lower_case}<#if column_has_next>,</#if>
|
||||||
|
</#list>
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
<foreach collection="list" item="item" separator=",">
|
||||||
|
(
|
||||||
|
<#list originalColumns as column>
|
||||||
|
${r"#{item."}${column.fieldName}${r"}"}<#if column_has_next>,</#if>
|
||||||
|
</#list>
|
||||||
|
)
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user