nutz qurey 方法有时会报错sql查询错误,项目里好几个地方出现了,有时候又不报错,放在Navicat Premium不报错:
Caused by: java.sql.SQLException: No operations allowed after statement closed.
请求异常:!Nutz SQL Error: 'SELECT c.*,i.participantsNum as participantsNum,s.electiveType FROM course c LEFT JOIN course_info i ON i.courseId= c.id LEFT JOIN course_study s ON c.id=s.courseId and s.delFlag=0 WHERE c.delFlag=false AND c.createSource='1' AND c.state='1' AND c.auditState='1' AND c.shopId='pn5rf8p7vuihorp8vqkrkccpqq' AND c.classifyId='7601e5c4cd3741778d0aaf80edbf8a30' GROUP BY c.id ORDER BY c.createAt DESC LIMIT 0, 10' PreparedStatement: 'SELECT c.*,i.participantsNum as participantsNum,s.electiveType FROM course c LEFT JOIN course_info i ON i.courseId= c.id LEFT JOIN course_study s ON c.id=s.courseId and s.delFlag=0 WHERE c.delFlag=? AND c.createSource=? AND c.state=? AND c.auditState=? AND c.shopId=? AND c.classifyId=? GROUP BY c.id ORDER BY c.createAt DESC LIMIT 0, 10' CaseMessage=No operations allowed after statement closed.