正确方式:
ORDER BY #{shop_id} 换成 ORDER BY ${shop_id}
备注: #{shop_id}是过滤列值, ¥{shop_id}是过滤列名
mybatis动态传入order by 参数的正确方式
最新推荐文章于 2023-07-21 17:46:30 发布
正确方式:
ORDER BY #{shop_id} 换成 ORDER BY ${shop_id}
备注: #{shop_id}是过滤列值, ¥{shop_id}是过滤列名