如图:一小段代码
<if test="queryStatus2 != null">
and ${queryStatus2}
</if>
<if test="queryStatus3 != null">
and ${queryStatus3}
</if>
<if test="queryStatus4 != null">
and ${queryStatus4}
</if>
搜索功能不一定是每个字段都要搜索的,所以需要这个if功能,在jpa或者springdata中如何实现呢??