模糊查询实现
作者:互联网
模糊查询 输入name的某个字 <where> <if test="name != null and name != ''"> and (position(#{name} in name) > 0) </if> and deleted = 0 </where> 模糊查询 按照名字或者账号查询 where <trim prefixOverrides="and"> <if test="search != null and search != ''"> (position(#{search} in a.name) > 0 or position(#{search} in a.login_name) > 0) </if> and a.deleted = 0 </trim>
标签:search,name,实现,模糊,查询,deleted,position 来源: https://blog.csdn.net/weixin_46005263/article/details/121021784