|
|
@ -112,6 +112,31 @@
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
|
|
|
|
|
INSERT INTO
|
|
|
|
|
|
|
|
<include refid="table"/>
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
<include refid="entityColumnList"/>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
VALUES
|
|
|
|
|
|
|
|
<foreach collection="list" item= "item" index ="index" separator=",">
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
${r"#{"}item.id},
|
|
|
|
|
|
|
|
<#list table.fields as f>
|
|
|
|
|
|
|
|
<#if !f.isSystem>
|
|
|
|
|
|
|
|
${r"#{"}item.${f.getFName()},jdbcType=${f.fieldType.jdbcType()}},
|
|
|
|
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
0,
|
|
|
|
|
|
|
|
0,
|
|
|
|
|
|
|
|
${r"#{"}token.userId,jdbcType=NUMERIC},
|
|
|
|
|
|
|
|
<#if dataBase == 'ORACLE'>sysdate<#elseif dataBase == 'MYSQL'>sysdate()</#if>,
|
|
|
|
|
|
|
|
NULL,
|
|
|
|
|
|
|
|
NULL
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
</foreach >
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="delete">
|
|
|
|
<update id="delete">
|
|
|
|
UPDATE
|
|
|
|
UPDATE
|
|
|
|
<include refid="table"/>
|
|
|
|
<include refid="table"/>
|
|
|
|