mybatis如果只有一个参数,并且这个参数在sql中进行了类似<if test=" param != null "></if> 的判断,需要加@Param,或者判断改为<if test=" _parameater != null "></if>