mybatis的mapper操作sql查询报Unknown column 'pro.recommend_type' in 'where clause',sql语句没有问题,单独在数据库中能查出来,找了好久的问题。实体类和mapper也映射了。求大家看看问题,非常感谢。
3条回答 默认 最新
- CSDN专家-sinJack 2021-09-17 14:58关注
Unknown column 'pro.recommend_type' in 'where clause'
recommend_type这列作为查询条件时,报错了。检查一下pro表中是否有这个字段。本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报