mybatis中if判斷傳入字符串或者Long參數不爲空

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.`
相關文章
相關標籤/搜索