mybatis中updateByPrimaryKeySelective等选择性操作在判断时对于VARCHAR类型需要同时判断非空和非空串
<if test="description != null and description !=''" >
description = #{description,jdbcType=VARCHAR},
</if>
vinozly 2015-11-25 14:10 原文
mybatis中updateByPrimaryKeySelective等选择性操作在判断时对于VARCHAR类型需要同时判断非空和非空串
<if test="description != null and description !=''" >
description = #{description,jdbcType=VARCHAR},
</if>