Mybatis使用generator自动生成的Example类使用OR条件查询
只需要这样就能使用or条件查询 列如(select * from customer where phone like '%2%' or `name` like '%2%')
如果需要其他复杂条件请百度 嘿嘿...
只需要这样就能使用or条件查询 列如(select * from customer where phone like '%2%' or `name` like '%2%')
如果需要其他复杂条件请百度 嘿嘿...