随笔分类 -  mybatis

摘要:eg: select * from user <trim prefix="WHERE" prefixoverride="AND |OR"> <if test="name != null "> AND name=#{name}</if> <if test="gender != null "> AND 阅读全文

posted @ 2016-11-22 15:35 xiaohehe2 阅读(199) 评论(0) 推荐(0)

摘要:1、例子: 实体类: <select id="findAllMsgByTagId" parameterType="com.yunkuan.entity.ParkClass" resultMap="parkMap" > select * from parkclass pc join parkclass 阅读全文

posted @ 2016-03-17 19:56 xiaohehe2 阅读(423) 评论(0) 推荐(0)

摘要:一、 1、两个参数都是int类型() 例子: 1 < select id="searchClassAllNum" resultType="int"> select count(*) from parkclass pc join parkclasstag pct on(pc.classtaglevel 阅读全文

posted @ 2016-03-17 19:41 xiaohehe2 阅读(1438) 评论(0) 推荐(0)

导航