mybatis中if判断传入字符串或者Long参数不为空

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lihua5419/article/details/79971759
private Long object_one;
private String object_two;

<if test="object_one !=null and object_one!=0">
	AND tc.creator_id=#{object_one}
</if>
<if test="object_two !=null and object_two !=''">
	 AND tc.`construction_time`=#{object_two}
</if>

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页