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>
mybatis中if判断传入字符串或者Long参数不为空
猜你喜欢
转载自blog.csdn.net/lihua5419/article/details/79971759
今日推荐
周排行