fix: fix update error

This commit is contained in:
2025-04-25 09:35:20 +08:00
parent a9bdf4ce61
commit 27c48ca0dc

View File

@@ -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">