<update id="updateByPrimaryKey" parameterType="com.item.pojo.db3306.TOrder" >
update t_order
set
<if test="orderStatus != null">
order_status = #{
orderStatus,jdbcType=INTEGER},
</if>
<if test="orderAmount != null">
order_amount = #{
orderAmount,jdbcType=DECIMAL},
</if>
<if test="receiveUser != null">
receive_user = #{
receiveUser,jdbcType=VARCHAR},
</if>
<if test="receiveMobile != null"
MyBatis条件更新语句
最新推荐文章于 2024-07-04 10:06:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)