|
求助
我定义了一个leaveSumActivity.w,想做一个过滤时间的报表,参数为 begin和end 。但是运行时均报错 “ leaveSumActivity is not define" 在js里已有注明var leaveSumActivity = {};
步骤我是参照 http://bbs.justep.com/forum.php?mod=viewthread&tid=49841&pid=165022634&page=1&extra=#pid165022634 和论坛里其他内容 来操作的。
错误代码为
[ERROR] 2013-10-11 18:13:57,688 com.justep.report.controller.DataController - 报表数据获取失败
执行ksql:select DEMO_LeaveApply.fCreateDeptName as fCreateDeptName,DEMO_LeaveApply.fCreatePerName as fCreatePerName,SA_OPOrg.sCode as sCode,case when DEMO_LeaveApply.fLeaveTypeName = '休假' then DEMO_LeaveApply.fLeaveDays else 0 end as vacation,case when DEMO_LeaveApply.fLeaveTypeName = '出差' then DEMO_LeaveApply.fLeaveDays else 0 end as travel,case when DEMO_LeaveApply.fLeaveTypeName = '病假' then DEMO_LeaveApply.fLeaveDays else 0 end as sick,case when DEMO_LeaveApply.fLeaveTypeName = '事假' then DEMO_LeaveApply.fLeaveDays else 0 end as leaveApply,case when DEMO_LeaveApply.fLeaveTypeName = '产假' then DEMO_LeaveApply.fLeaveDays else 0 end as maternity,DEMO_LeaveApply.fStartTime as fStartTime from DEMO_LeaveApply DEMO_LeaveApply optional join SA_OPOrg SA_OPOrg on DEMO_LeaveApply.fCreateDeptID = SA_OPOrg optional join SA_Task SA_Task on DEMO_LeaveApply = SA_Task.sData1 where SA_Task.sStatusID = 'tesFinished' AND SA_Task.sParent is null AND DEMO_LeaveApply.fStartTime > :begin AND DEMO_LeaveApply.fStartTime < :end order by SA_OPOrg.sCode asc时出错!
com.justep.report.exception.ReportServerException: 报表数据获取失败
at com.justep.report.controller.DataController.execute(Unknown Source)
at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
at com.justep.report.controller.InitController.execute(Unknown Source)
at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
at com.justep.report.Servlet.a(Unknown Source)
at com.justep.report.Servlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.justep.report.exception.ReportServerException: 执行ksql:select DEMO_LeaveApply.fCreateDeptName as fCreateDeptName,DEMO_LeaveApply.fCreatePerName as fCreatePerName,SA_OPOrg.sCode as sCode,case when DEMO_LeaveApply.fLeaveTypeName = '休假' then DEMO_LeaveApply.fLeaveDays else 0 end as vacation,case when DEMO_LeaveApply.fLeaveTypeName = '出差' then DEMO_LeaveApply.fLeaveDays else 0 end as travel,case when DEMO_LeaveApply.fLeaveTypeName = '病假' then DEMO_LeaveApply.fLeaveDays else 0 end as sick,case when DEMO_LeaveApply.fLeaveTypeName = '事假' then DEMO_LeaveApply.fLeaveDays else 0 end as leaveApply,case when DEMO_LeaveApply.fLeaveTypeName = '产假' then DEMO_LeaveApply.fLeaveDays else 0 end as maternity,DEMO_LeaveApply.fStartTime as fStartTime from DEMO_LeaveApply DEMO_LeaveApply optional join SA_OPOrg SA_OPOrg on DEMO_LeaveApply.fCreateDeptID = SA_OPOrg optional join SA_Task SA_Task on DEMO_LeaveApply = SA_Task.sData1 where SA_Task.sStatusID = 'tesFinished' AND SA_Task.sParent is null AND DEMO_LeaveApply.fStartTime > :begin AND DEMO_LeaveApply.fStartTime < :end order by SA_OPOrg.sCode asc时出错!
at com.justep.report.controller.DataController.a(Unknown Source)
at com.justep.report.controller.DataController.a(Unknown Source)
... 20 more
Caused by: java.lang.Exception
... 22 more
|
-
|