**mybatis处理SQL查询中的where后面and经常使用的2种方法**

<!-- 1:后面跟1=1 决对成立--> <select id="queryPersonByidAndNo"> select * from person where 1=1 <if test=" id !=null and id !='' "> and id = #{id} </if> <if test=" id !=null and id !='' "> and
相关文章
相关标签/搜索