could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

 

 错误原因是数据库存的和实体类写的不一致:

 

 

 

 应该把30行转换成deptid ,就能正常取值了

posted @ 2020-08-24 17:59  keepsummer  阅读(15625)  评论(0)    收藏  举报