mybatis中updateByPrimaryKeySelective

mybatis中updateByPrimaryKeySelective等选择性操作在判断时对于VARCHAR类型需要同时判断非空和非空串

<if test="description != null and description !=''" >
description = #{description,jdbcType=VARCHAR},
</if>
posted @ 2015-11-25 14:10  VinoZhu  阅读(1077)  评论(0编辑  收藏  举报