优化sql语句
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user