在使用spring的jdbcTemplate来查询的时候,通常是这样写:String sql = "select * from eprk_corporation where pk_corporation=?";
        
List list = jdbcTemplate.queryForList(sql,new String[]{"gogogo"});问题是:如果我这个“gogogo”值是 null ,这时执行这个查询会报错,说无效的列类型。
怎么才能让当我这个“gogogo”为 null 的时候,让它自动忽略 我sql里的这个条件,相当于 where 1=1 的效果