赞
踩
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode
\-[IDENT] IdentNode: 'routerNumber' {originalText=routerNumber}
at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:
145)
我的sql语句:
String sql="select agentAccount,hardware,sum(effectTimes),sum(effectTimesTemp),agentAccount,gatewayIp,lanIp,sum(desktopCount)," +
"sum(floatCount),sum(backCount),sum(shortCutCount),sum(netCount),sum(gameCount),gameSupport,sum(startOpenCount)," +
"sum(justNotify),froms , advId,sum(advClientCount) ,routerNumber from ClientClick where feeTime= ? and advId=0 group by hardware , agentAccount";
一开始这个表中有routerNumber列,后来删了,语句中没有删,所以报了这个错,总之原因就是routerNumber在数据库表中没有这个列,将sql语句中的这个名去掉就ok了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。