select * from goods_type WHERE path like concat(concat(‘%‘,#{id}),‘%‘)
参考如下:
mybatise 模糊查询
原文:https://www.cnblogs.com/chenlijing/p/12722683.html