Mybatis 中参数取值判空问题 以下的类型均指在java中的类型 1.如果是string 类型 则需要这么判空 <if test="xxx != null and xxx != ''"> </if> 2.如果是数值类型 <if test = "xxx != null"> </if> 3.集合取值判空 <if test = "list != null and list.size() > 0 "> </if>