优化sql语句

This commit is contained in:
KilLze
2025-12-29 19:01:40 +08:00
parent 1cf9ba0aa9
commit 07a6b86d7d

View File

@@ -82,10 +82,10 @@
<update id="updateById">
UPDATE post
<set>
<if test="content != null">
<if test="content != null and content != '' ">
content = #{content},
</if>
<if test="tags != null">
<if test="tags != null and tags != '' ">
tags = #{tags, typeHandler=com.bao.dating.handler.ListToVarcharTypeHandler},
</if>
<if test="mediaOssKeys != null">