|
版本: |
BeX5V3.1 |
小版本号: |
|
|
|
数据库: |
MySQL |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
Chrome |
|
|
- selectActivity2.windowReceiverReceive = function(event){
- var data = justep.xbl('main');
- var date = new Date;
- var year = date.getFullYear();
- var filterStr = "GZ_BudgetMain.fYear = '" + year + "'"; //只能选本年的
- filterStr = filterStr + " and GZ_Budgetfrozen.fFrozenAmount > 0"; //只能选冻结金额不为0的
- if(event.data && event.data.bm){ //只能选本部门的
- filterStr = filterStr + " and GZ_Budgetfrozen.fDepartment = '" + event.data.bm + "'";
- }
- if(event.data && event.data.r){ //只能选本人的
- filterStr = filterStr + " and GZ_BudgetFrozen.fCreateUser = '" + event.data.r + "'";
- }
- data.filters.setFilter('filter1',filterStr);
- data.setOrderBy("fCreateDtim", 0); //按创建时间逆序排
- data.refreshData();
- };
复制代码
提示如下错误,可是我在HeidiSQL Portable里执行以下语句正常,也就是说 GZ_Budgetfrozen.fFrozenAmount这个字段是存在的,数据类型是Decimal
select * from GZ_Budgetfrozen GZ_Budgetfrozen where GZ_Budgetfrozen.fFrozenAmount > 0
请帮忙看看是什么问题?谢谢!
- 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT GZ_BudgetFrozen.*,GZ_BudgetMain.fYear as fYear,GZ_BudgetMain.fParentColumn as fParentColumn,GZ_BudgetMain.fSonColumn as fSonColumn,GZ_BudgetMain.fDepartment as fDepartment FROM GZ_BudgetFrozen GZ_BudgetFrozen optional join GZ_BudgetMain GZ_BudgetMain on GZ_BudgetFrozen.fMasterID = GZ_BudgetMain WHERE ((GZ_BudgetMain.fYear = '2016' and GZ_Budgetfrozen.fFrozenAmount > 0 and GZ_Budgetfrozen.fDepartment = '测试部' and GZ_BudgetFrozen.fCreateUser = '测试')) ORDER BY fCreateDtim DESC LIMIT 0, 10
- --> sql:
- --> binds: []
- 编码: JUSTEP154041; 提示: KSQL语法错误, 未声明的符号GZ_Budgetfrozen.fFrozenAmount
- java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at com.justep.system.action.Engine.invokeActions(Native Method)
- at com.justep.system.action.Engine.invokeActions(Unknown Source)
- at com.justep.business.server.BusinessServer.doAction(Unknown Source)
- at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT GZ_BudgetFrozen.*,GZ_BudgetMain.fYear as fYear,GZ_BudgetMain.fParentColumn as fParentColumn,GZ_BudgetMain.fSonColumn as fSonColumn,GZ_BudgetMain.fDepartment as fDepartment FROM GZ_BudgetFrozen GZ_BudgetFrozen optional join GZ_BudgetMain GZ_BudgetMain on GZ_BudgetFrozen.fMasterID = GZ_BudgetMain WHERE ((GZ_BudgetMain.fYear = '2016' and GZ_Budgetfrozen.fFrozenAmount > 0 and GZ_Budgetfrozen.fDepartment = '测试部' and GZ_BudgetFrozen.fCreateUser = '测试')) ORDER BY fCreateDtim DESC LIMIT 0, 10
- --> sql:
- --> binds: []
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
- at com.justep.system.data.BizData.query(Unknown Source)
- at BizProcedure.query(BizProcedure.java:137)
- ... 26 more
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP154041; 提示: KSQL语法错误, 未声明的符号GZ_Budgetfrozen.fFrozenAmount
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.util.Utils.check(Unknown Source)
- at com.justep.system.ksql.parser.AbstractParser.checkSymTable(Unknown Source)
- at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source)
- ... 31 more
- url:/UI/system/service/common/bizAction.j
- param: 0 and GZ_Budgetfrozen.fDepartment = '测试部' and GZ_BudgetFrozen.fCreateUser = '测试')]]>010
- at (http://oa.gzhjat.com:8088/x5/v_7e7fd9e4519641c8b3a18d180becee45l_s_d_/base/base.js?language=zh_CN:1)69
复制代码
|
|