67,512
社区成员
发帖
与我相关
我的任务
分享
<!-- 动态更新-->
<update id="updateBook" parameterType="map">
update book
<trim prefix="set" suffixOverrides=",">
<if test="_parameter.containsKey('bookName')">
book_name=#{bookName},
</if>
<if test="_parameter.containsKey('bookPrice')">
book_price=#{bookPrice},
</if>
<if test="_parameter.containsKey('bookPage')">
book_page=#{bookPage}
</if>
</trim>
where id=#{id}
</update>