【mybatis】IF判斷的坑
http://cheng-xinwei.iteye.com/blog/2008200
<if test="type=='1'">
and status ='ok'
</if>
以上代碼無論如何是執行不了的,
應改爲
<if test='type=="1"'>
and status ='ok'
</if>
【mybatis】IF判斷的坑
http://cheng-xinwei.iteye.com/blog/2008200
<if test="type=='1'">
and status ='ok'
</if>
以上代碼無論如何是執行不了的,
應改爲
<if test='type=="1"'>
and status ='ok'
</if>