mybatis 动态标签 判断两个参数不为空

如下为用if test动态标签,判断两个参数不为空.
只有当start和end都不为空的时候,才会进入limit

 <if test="start!= null and end!=null" >
        limit ${start},${end}
 </if>

猜你喜欢

转载自blog.csdn.net/qq_33229669/article/details/81701481