fix: fix update error
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateInfo" parameterType="map" useGeneratedKeys="true" keyProperty="info.id" keyColumn="id">
|
<update id="updateInfo" parameterType="map">
|
||||||
update ${tableName}
|
update ${tableName}
|
||||||
<set>
|
<set>
|
||||||
<foreach collection="info" separator="," item="value" index="key">
|
<foreach collection="info" separator="," item="value" index="key">
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
</set>
|
</set>
|
||||||
where id = #{info.id}
|
where id = #{info.id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateInfoWithNull" parameterType="map" useGeneratedKeys="true" keyProperty="info.id" keyColumn="id">
|
<update id="updateInfoWithNull" parameterType="map" >
|
||||||
update ${tableName}
|
update ${tableName}
|
||||||
<set>
|
<set>
|
||||||
<foreach collection="info.keys" separator="," item="key" index="index">
|
<foreach collection="info.keys" separator="," item="key" index="index">
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
where id = #{info.id}
|
where id = #{info.id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateByWhere" parameterType="map" useGeneratedKeys="true" keyProperty="info.id">
|
<update id="updateByWhere" parameterType="map" >
|
||||||
update ${tableName}
|
update ${tableName}
|
||||||
<set>
|
<set>
|
||||||
<foreach collection="info" separator="," item="value" index="key">
|
<foreach collection="info" separator="," item="value" index="key">
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
${sql}
|
${sql}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateByWhereWithNull" parameterType="map" useGeneratedKeys="true" keyProperty="info.id" keyColumn="id">
|
<update id="updateByWhereWithNull" parameterType="map">
|
||||||
update ${tableName}
|
update ${tableName}
|
||||||
<set>
|
<set>
|
||||||
<foreach collection="info.keys" separator="," item="key" index="index">
|
<foreach collection="info.keys" separator="," item="key" index="index">
|
||||||
|
|||||||
Reference in New Issue
Block a user