|
楼主 |
发表于 2014-9-1 13:09:55
|
显示全部楼层
我的写法改成:
select DSS_BASIS_EQUIPMENT.*, rownum as XH
from DSS_BASIS_EQUIPMENT DSS_BASIS_EQUIPMENT
where DSS_BASIS_EQUIPMENT.EQUIP_NO LIKE concat('%', :ZCH, '%')
AND DSS_BASIS_EQUIPMENT.EQUIP_NAME LIKE concat('%', :SBMC, '%')
AND DSS_BASIS_EQUIPMENT.DEPT_NAME LIKE concat('%', :SYBM, '%')
AND DSS_BASIS_EQUIPMENT.APPLY_PEOPLE LIKE concat('%', :SYRY, '%')
AND DSS_BASIS_EQUIPMENT.EQUIP_TYPE = :TYPE
也不行,还是报错啊!
[ERROR] 2014-09-01 13:06:28,690 com.justep.report.controller.DataController - 报表数据获取失败
执行KSQL出错, KSQL: select DSS_BASIS_EQUIPMENT.*,rownum as XH from DSS_BASIS_EQUIPMENT DSS_BASIS_EQUIPMENT where DSS_BASIS_EQUIPMENT.EQUIP_NO LIKE concat('%', :ZCH, '%') AND DSS_BASIS_EQUIPMENT.EQUIP_NAME LIKE concat('%', :SBMC, '%') AND DSS_BASIS_EQUIPMENT.DEPT_NAME LIKE concat('%', :SYBM, '%') AND DSS_BASIS_EQUIPMENT.APPLY_PEOPLE LIKE concat('%', :SYRY, '%') AND DSS_BASIS_EQUIPMENT.EQUIP_TYPE = :TYPE
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出错, KSQL: select DSS_BASIS_EQUIPMENT.*,rownum as XH from DSS_BASIS_EQUIPMENT DSS_BASIS_EQUIPMENT where DSS_BASIS_EQUIPMENT.EQUIP_NO LIKE concat('%', :ZCH, '%') AND DSS_BASIS_EQUIPMENT.EQUIP_NAME LIKE concat('%', :SBMC, '%') AND DSS_BASIS_EQUIPMENT.DEPT_NAME LIKE concat('%', :SYBM, '%') AND DSS_BASIS_EQUIPMENT.APPLY_PEOPLE LIKE concat('%', :SYRY, '%') AND DSS_BASIS_EQUIPMENT.EQUIP_TYPE = :TYPE
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 |
|