把#改为mybaties可识别的变量${}就可以了如下:原注解@Select(SELECT * FROM users WHERE city = #{cityId} ORDER BY #{byName}) 修改后@Select(SELECT * FROM users WHERE city = #{ci...
把#改为mybaties可识别的变量${}就可以了如下:原注解@Select(SELECT * FROM users WHERE city = #{cityId} ORDER BY #{byName}) 修改后@Select(SELECT * FROM users WHERE city = #{ci...