spring jpa 多过滤条件过滤

@Query(" select s from ContractBillInfo s where 1=1 and ?1 ")
Page getContractBillInfo(String whereStr, Pageable pageable);

参数设置whereStr 是一个不定参数项的过滤条件汇总,编译不通过,请大神帮忙

whereStr 类似 's.a like '%b%' and s.b >='+b+''.....,and项不定数量

http://www.oschina.net/question/592995_2137393?sort=time

图片说明试试这种写法,过滤参数也可以加上去