mybatis的条件与查询
摘要:
条件样式 <if test=" null == yearNum or '' == yearNum or 0 == yearNum"> and t.year_num=1 </if> 模糊查询 1.注入 LIKE '%${param}%' 2.强制不解析 LIKE "%"#{param}"%" 3.拼接 阅读全文
posted @ 2018-04-24 18:03 码渊 阅读(196) 评论(0) 推荐(0)
posted @ 2018-04-24 18:03 码渊 阅读(196) 评论(0) 推荐(0)
posted @ 2018-04-24 18:00 码渊 阅读(381) 评论(0) 推荐(0)
posted @ 2018-04-24 17:54 码渊 阅读(95) 评论(0) 推荐(0)
posted @ 2018-04-24 17:34 码渊 阅读(105) 评论(0) 推荐(0)
posted @ 2018-04-24 17:29 码渊 阅读(178) 评论(0) 推荐(0)
posted @ 2018-04-24 17:22 码渊 阅读(157) 评论(0) 推荐(0)
posted @ 2018-04-24 17:05 码渊 阅读(319) 评论(0) 推荐(0)