mybatis 数据库字段为空or为空串 忽略条件过滤, 不为空且不为空串时才需nameParam过滤条件
name未配置视为不考虑name条件select*fromuserwhere(((ISNULL(name))OR(name=''))ORname=#{user.nameParam})三个or语句推荐这个select*fromuserwhereISNULL(name)ORname=''ORname=#{user.nameParam}select*fromuserwhereISNULL(name)OR