- if
<select id="queryBlogIF" parameterType="map" resultType="blog">
select * from mybatis.blog where 1=1
<if test="title!=null">and title=#{title}</if>
<if test="author!=null">and author=#{author}</if>
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/279812.html