<select id="serchRelation" resultType="Relation">SELECTr.node_one as nodeOne,r.node_two as nodeTwo,r.relation as relation,r.is_delete as isDelete,r.create_time as createTime,n.model_name as nodeTwoNameFROM relation r LEFT JOIN no…
1.mybatis判断是否为空或null <if test="type!=null and type!=''"> AND type = #{type} </if> 2.Mybatis中的like查询 今天要做一个模糊查询 用的Mybatis 开始写的是: select id,bookName,author,publisher,donor,status,createDate,lastUpdate from book <where> <if tes…