首页 > 其他 > 详细

mybatis-关于<update>的日常记录

时间:2019-10-18 22:02:27      阅读:93      评论:0      收藏:0      [点我收藏+]

 

!注意:,一定要有

<update id="updateByPrimaryKeySelective" parameterType="com.dhht.model.order.OrderInfo">
update order_info
<set>
<if test="sendOutStatus != null">
send_out_status = #{sendOutStatus,jdbcType=CHAR},
</if>
<if test="districtId != null">
district_id = #{districtId,jdbcType=CHAR},
</if>
<if test="isCancel != null">
is_cancel = #{isCancel,jdbcType=CHAR},
</if>
<if test="cancelTime != null">
cancel_time = #{cancelTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=CHAR}
</update>

mybatis-关于<update>的日常记录

原文:https://www.cnblogs.com/sung1024/p/11700542.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!