优化sql语句
This commit is contained in:
@@ -82,10 +82,10 @@
|
|||||||
<update id="updateById">
|
<update id="updateById">
|
||||||
UPDATE post
|
UPDATE post
|
||||||
<set>
|
<set>
|
||||||
<if test="content != null">
|
<if test="content != null and content != '' ">
|
||||||
content = #{content},
|
content = #{content},
|
||||||
</if>
|
</if>
|
||||||
<if test="tags != null">
|
<if test="tags != null and tags != '' ">
|
||||||
tags = #{tags, typeHandler=com.bao.dating.handler.ListToVarcharTypeHandler},
|
tags = #{tags, typeHandler=com.bao.dating.handler.ListToVarcharTypeHandler},
|
||||||
</if>
|
</if>
|
||||||
<if test="mediaOssKeys != null">
|
<if test="mediaOssKeys != null">
|
||||||
|
|||||||
Reference in New Issue
Block a user