java - hql查询问题。。。。。
阿神
阿神 2017-04-17 17:26:05
0
1
236

后台代码:

HhUserEntity hhUserEntity=super.getEntity(HhUserEntity.class, userId); if(hhUserEntity!=null){ String ids=""; Object [] couponIds=(Object[])couponJson.toArray(); if(couponIds!=null&&couponIds.length>0){ for(int i=0;i list = super.findByQueryString(hql); System.out.println(list); if(list!=null&&list.size()>0){ super.deleteAllEntitie(list); }

报错:
[org.jeecgframework.core.common.exception.GlobalExceptionResolver]全局处理异常捕获:
org.hibernate.QueryException: could not resolve property: pubid of: com.sendiy.hh.coupons.entity.CouponPublishEntity [from com.sendiy.hh.coupons.entity.CouponPublishEntity e left join Coupon 。。。

"obj": {

"code": "201", "msg": "could not resolve property: pubid of: com.sendiy.hh.coupons.entity.CouponPublishEntity [from com.sendiy.hh.coupons.entity.CouponPublishEntity e left join CouponPoolEntity d where d.pubId=e.pubId and d.owner='4028668150c6aedb0150c6ddde750005' and e.pubid in ('2') ]" }, "attributes": {}, "msg": "操作成功", "success": true
阿神
阿神

闭关修行中......

모든 응답 (1)
Peter_Zhu

检查下两个数据库表映射实体,无码,应该出现在id的问题

    최신 다운로드
    더>
    웹 효과
    웹사이트 소스 코드
    웹사이트 자료
    프론트엔드 템플릿
    회사 소개 부인 성명 Sitemap
    PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!