xml中写sql语句多重if判断时and的处理
select * from table
<where>
<trim prefixOverrides="and">
<if test="a!= null">
a=#{a}
</if>
<if test="b != null">
and b=#{b}
</if>
<if test="c!= null">
and c like '%#{c}%'
and c like '%'||#{c}||'%' (oracle写法)
</if>
</trim>
</where>