【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>