|
楼主 |
发表于 2017-2-16 16:47:28
|
显示全部楼层
后台异常是这样,应该是语法不对,但我看不出哪里不对也不知道怎么改
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: update hr_month_salary a set a.fDJBX = (select fDJBX from (SELECT fNY,fYGBH,fYGXM,sum(fGRJN) AS fDJBX FROM hr_scocial p where p.fNY = '2016年8月' group by p.fNY,p.fYGBH,p.fYGXM) AS b) where a.fNF = '2016' and a.fYF = '8' and a.fYGBH = b.fYGBH
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlUpdate(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlExecuteUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at Salary.updateDJBXandGJJ(Salary.java:1420)
... 27 more
Caused by: com.justep.exception.KSQLException: 编码: JUSTEP154115; 提示: KSQL语法错误, fYGBH,p.fYGXM) ^^AS b) where a.f中未找到需要的元素, 位置176期望是<Identifier>
at com.justep.exception.KSQLException.create(Unknown Source)
at com.justep.system.ksql.token.TokenManager.matchToken(Unknown Source)
at com.justep.system.ksql.token.TokenManager.match(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.joinedExpression(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.fromNode(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.multiExpression(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.addExpression(Unknown Source)
at com.justep.system.ksql.parser.UpdateParser.assignExpression(Unknown Source)
at com.justep.system.ksql.parser.UpdateParser.setNode(Unknown Source)
at com.justep.system.ksql.parser.UpdateParser.start(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source)
... 33 more |
|