-
问题描述
- 传参列表中有多参数的时候,xml无法正常解析定位到参数的位置。
-
解决方法
-
mapper层,方法变量前加@param注解
int existSongId(@Param("userId") Integer userId, @Param("songId") Integer songId);
-
xml层修改为,问题解决。
SELECT count(*) FROM t_user_luck_draw_record where open_id=#{param1} and luck_draw_id=#{param2}
-
相关文章
- 12-31Parameter 'xxx' not found. Available parameters are [1, 0, param1, param2]
- 12-31错误:Parameter '0' not found.Available parameters are [arg1, arg0, param1, param2]的解决方法
- 12-31MyBatis-Plus报错Parameter ‘xxx‘ not found. Available parameters are [user, param1]解决办法
- 12-31BindingException: Parameter 'approval_state' not found. Available parameters are [arg1, ar
- 12-31Parameter ‘id‘ not found. Available parameters are [0, 1, param1, param2]
- 12-31org.apache.ibatis.binding.BindingException: Parameter '0' not found. Available parameters
- 12-31Parameter 'xxx' not found. Available parameters are [arg1, arg0, param1, param2]
- 12-31Parameter ‘ids‘ not found. Available parameters are [array, arg0]
- 12-31Parameter 'id' not found. Available parameters are [1, 0, param1, param2]异常
- 12-31mybatis 批量更新 Parameter '__frch_item_0' not found. Available parameters are [list]