mybatis实现某个不为纯数字的字段的between and,模糊查询 select * from i, m, s where i.ID = s.ID <if test="lowc != null and lowc != null"> AND replace(m.C,'核','') between #{lowc} and #{heighc} </if> <if test="lowme != null and heighme != null "> AND replace(m.ME,'G','') between #{lowme} and #{heighme} </if> <if test="fuzzyParam != null and fuzzyParam != ''"> AND CONCAT(i.ID, i.NAME, m.NAME,m.C,m.ME) LIKE concat('%',#{fuzzyParam},'%') </if>
mybatis实现字段截取实现搜索和模糊查询
最新推荐文章于 2023-12-29 09:32:13 发布