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
posted @ 2018-04-24 18:03
posted @ 2018-04-24 18:00
posted @ 2018-04-24 17:54
posted @ 2018-04-24 17:34
posted @ 2018-04-24 17:29
posted @ 2018-04-24 17:22
posted @ 2018-04-24 17:05