起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2406|回复: 2

[结贴] SQL语句出错

[复制链接]

16

主题

53

帖子

162

积分

初级会员

Rank: 2

积分
162
QQ
发表于 2015-9-7 13:15:53 | 显示全部楼层 |阅读模式
2015-09-07 12:09:0
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT OA_WM_LeaveApply.*,SA_Task,SA_Task.sEURL as sEURL,SA_Task.sProcess as sProcess,SA_Task.sActivity as sActivity  FROM OA_WM_LeaveApply OA_WM_LeaveApply  join SA_Task SA_Task on SA_Task.sData1 = OA_WM_LeaveApply LIMIT 0, -1
--> sql: SELECT  OA_WM_LeaveApply.fID AS OA_WM_LeaveApply, SA_Task.sID, OA_WM_LeaveApply.FAPPLYDATE AS fApplyDate, OA_WM_LeaveApply.FAPPLYDEPTID AS fApplyDeptID, OA_WM_LeaveApply.FAPPLYDEPTNAME AS fApplyDeptName, OA_WM_LeaveApply.FAPPLYPERSONID AS fApplyPersonID, OA_WM_LeaveApply.FAPPLYPERSONNAME AS fApplyPersonName, OA_WM_LeaveApply.FBIZSTATE AS fBizState, OA_WM_LeaveApply.FBIZSTATENAME AS fBizStateName, OA_WM_LeaveApply.FCANCEDAYS AS fCanceDays, OA_WM_LeaveApply.FCANCEENDTIME AS fCanceEndTime, OA_WM_LeaveApply.FCANCEHOURS AS fCanceHours, OA_WM_LeaveApply.FCANCESTARTTIME AS fCanceStartTime, OA_WM_LeaveApply.FCANCELHOLSDATE AS fCancelHolsDate, OA_WM_LeaveApply.FCANCELHOLSDEPTNAME AS fCancelHolsDeptName, OA_WM_LeaveApply.FCANCELHOLSPERSONNAME AS fCancelHolsPersonName, OA_WM_LeaveApply.FCANCELTIME AS fCancelTime, OA_WM_LeaveApply.FCLIENTERID AS fClienterID, OA_WM_LeaveApply.FCLIENTERNAME AS fClienterName, OA_WM_LeaveApply.FCREATEDEPTID AS fCreateDeptID, OA_WM_LeaveApply.FCREATEDEPTNAME AS fCreateDeptName, OA_WM_LeaveApply.FCREATEPERID AS fCreatePerID, OA_WM_LeaveApply.FCREATEPERNAME AS fCreatePerName, OA_WM_LeaveApply.FCREATETIME AS fCreateTime, OA_WM_LeaveApply.FCURRENTACTIVITIES AS fCurrentActivities, OA_WM_LeaveApply.FCURRENTEXECUTORS AS fCurrentExecutors, OA_WM_LeaveApply.FDEPTPATH AS fDeptPath, OA_WM_LeaveApply.FENDTIME AS fEndTime, OA_WM_LeaveApply.FFACTDAYS AS fFactDays, OA_WM_LeaveApply.FFACTENDTIME AS fFactEndTime, OA_WM_LeaveApply.FFACTHOURS AS fFactHours, OA_WM_LeaveApply.FFACTSTARTTIME AS fFactStartTime, OA_WM_LeaveApply.FFACTTIME AS fFactTime, OA_WM_LeaveApply.FISREDUCHOLIDAY AS fIsReducHoliday, OA_WM_LeaveApply.FISSALARY AS fIsSalary, OA_WM_LeaveApply.FLEAVEDAYS AS fLeaveDays, OA_WM_LeaveApply.FLEAVEHOURS AS fLeaveHours, OA_WM_LeaveApply.FLEAVEREASON AS fLeaveReason, OA_WM_LeaveApply.FLEAVETIME AS fLeaveTime, OA_WM_LeaveApply.FLEAVETYPEID AS fLeaveTypeID, OA_WM_LeaveApply.FLEAVETYPENAME AS fLeaveTypeName, OA_WM_LeaveApply.FNO AS fNO, OA_WM_LeaveApply.FPLACE AS fPLACE, OA_WM_LeaveApply.FPLANID AS fPlanID, OA_WM_LeaveApply.FPLANNAME AS fPlanName, OA_WM_LeaveApply.FPROJECTID AS fProjectID, OA_WM_LeaveApply.FPROJECTNAME AS fProjectName, OA_WM_LeaveApply.FRELATIONTEL AS fRelationTel, OA_WM_LeaveApply.FREMARK AS fRemark, OA_WM_LeaveApply.FSTARTTIME AS fStartTime, OA_WM_LeaveApply.FTRANSPORT AS fTransport, OA_WM_LeaveApply.FURL AS fURL, OA_WM_LeaveApply.FUPDATEDEPTID AS fUpdateDeptID, OA_WM_LeaveApply.FUPDATEDEPTNAME AS fUpdateDeptName, OA_WM_LeaveApply.FUPDATEPERID AS fUpdatePerID, OA_WM_LeaveApply.FUPDATEPERNAME AS fUpdatePerName, OA_WM_LeaveApply.FUPDATETIME AS fUpdateTime, OA_WM_LeaveApply.FWORKCONNECTPERSONID AS fWorkConnectPersonID, OA_WM_LeaveApply.FWORKCONNECTPERSONNAME AS fWorkConnectPersonName, OA_WM_LeaveApply.FWORKEXPLAIN AS fWorkExplain, SA_Task.SACTIVITY AS sActivity, SA_Task.SEURL AS sEURL, SA_Task.SPROCESS AS sProcess, OA_WM_LeaveApply.VERSION AS version FROM OA_WM_LeaveApply OA_WM_LeaveApply JOIN SA_Task SA_Task ON SA_Task.SDATA1 = OA_WM_LeaveApply.fID
--> 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:12)
        ... 26 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: SELECT  OA_WM_LeaveApply.fID AS OA_WM_LeaveApply, SA_Task.sID, OA_WM_LeaveApply.FAPPLYDATE AS fApplyDate, OA_WM_LeaveApply.FAPPLYDEPTID AS fApplyDeptID, OA_WM_LeaveApply.FAPPLYDEPTNAME AS fApplyDeptName, OA_WM_LeaveApply.FAPPLYPERSONID AS fApplyPersonID, OA_WM_LeaveApply.FAPPLYPERSONNAME AS fApplyPersonName, OA_WM_LeaveApply.FBIZSTATE AS fBizState, OA_WM_LeaveApply.FBIZSTATENAME AS fBizStateName, OA_WM_LeaveApply.FCANCEDAYS AS fCanceDays, OA_WM_LeaveApply.FCANCEENDTIME AS fCanceEndTime, OA_WM_LeaveApply.FCANCEHOURS AS fCanceHours, OA_WM_LeaveApply.FCANCESTARTTIME AS fCanceStartTime, OA_WM_LeaveApply.FCANCELHOLSDATE AS fCancelHolsDate, OA_WM_LeaveApply.FCANCELHOLSDEPTNAME AS fCancelHolsDeptName, OA_WM_LeaveApply.FCANCELHOLSPERSONNAME AS fCancelHolsPersonName, OA_WM_LeaveApply.FCANCELTIME AS fCancelTime, OA_WM_LeaveApply.FCLIENTERID AS fClienterID, OA_WM_LeaveApply.FCLIENTERNAME AS fClienterName, OA_WM_LeaveApply.FCREATEDEPTID AS fCreateDeptID, OA_WM_LeaveApply.FCREATEDEPTNAME AS fCreateDeptName, OA_WM_LeaveApply.FCREATEPERID AS fCreatePerID, OA_WM_LeaveApply.FCREATEPERNAME AS fCreatePerName, OA_WM_LeaveApply.FCREATETIME AS fCreateTime, OA_WM_LeaveApply.FCURRENTACTIVITIES AS fCurrentActivities, OA_WM_LeaveApply.FCURRENTEXECUTORS AS fCurrentExecutors, OA_WM_LeaveApply.FDEPTPATH AS fDeptPath, OA_WM_LeaveApply.FENDTIME AS fEndTime, OA_WM_LeaveApply.FFACTDAYS AS fFactDays, OA_WM_LeaveApply.FFACTENDTIME AS fFactEndTime, OA_WM_LeaveApply.FFACTHOURS AS fFactHours, OA_WM_LeaveApply.FFACTSTARTTIME AS fFactStartTime, OA_WM_LeaveApply.FFACTTIME AS fFactTime, OA_WM_LeaveApply.FISREDUCHOLIDAY AS fIsReducHoliday, OA_WM_LeaveApply.FISSALARY AS fIsSalary, OA_WM_LeaveApply.FLEAVEDAYS AS fLeaveDays, OA_WM_LeaveApply.FLEAVEHOURS AS fLeaveHours, OA_WM_LeaveApply.FLEAVEREASON AS fLeaveReason, OA_WM_LeaveApply.FLEAVETIME AS fLeaveTime, OA_WM_LeaveApply.FLEAVETYPEID AS fLeaveTypeID, OA_WM_LeaveApply.FLEAVETYPENAME AS fLeaveTypeName, OA_WM_LeaveApply.FNO AS fNO, OA_WM_LeaveApply.FPLACE AS fPLACE, OA_WM_LeaveApply.FPLANID AS fPlanID, OA_WM_LeaveApply.FPLANNAME AS fPlanName, OA_WM_LeaveApply.FPROJECTID AS fProjectID, OA_WM_LeaveApply.FPROJECTNAME AS fProjectName, OA_WM_LeaveApply.FRELATIONTEL AS fRelationTel, OA_WM_LeaveApply.FREMARK AS fRemark, OA_WM_LeaveApply.FSTARTTIME AS fStartTime, OA_WM_LeaveApply.FTRANSPORT AS fTransport, OA_WM_LeaveApply.FURL AS fURL, OA_WM_LeaveApply.FUPDATEDEPTID AS fUpdateDeptID, OA_WM_LeaveApply.FUPDATEDEPTNAME AS fUpdateDeptName, OA_WM_LeaveApply.FUPDATEPERID AS fUpdatePerID, OA_WM_LeaveApply.FUPDATEPERNAME AS fUpdatePerName, OA_WM_LeaveApply.FUPDATETIME AS fUpdateTime, OA_WM_LeaveApply.FWORKCONNECTPERSONID AS fWorkConnectPersonID, OA_WM_LeaveApply.FWORKCONNECTPERSONNAME AS fWorkConnectPersonName, OA_WM_LeaveApply.FWORKEXPLAIN AS fWorkExplain, SA_Task.SACTIVITY AS sActivity, SA_Task.SEURL AS sEURL, SA_Task.SPROCESS AS sProcess, OA_WM_LeaveApply.VERSION AS version FROM OA_WM_LeaveApply OA_WM_LeaveApply JOIN SA_Task SA_Task ON SA_Task.SDATA1 = OA_WM_LeaveApply.fID, binds: []出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.ksql.KSQLUtils.execSqlSelect(Unknown Source)
        ... 31 more
Caused by: java.sql.SQLException: ORA-00942: 表或视图不存在

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
        at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
        at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:796)
        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1031)
        at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:836)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1124)
        at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
        at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        ... 32 more

OA_WM_LeaveApply表是存在的 在ccsoa中
SA_TASK是在ccssys中


QQ截图20150907131157.png


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2015-9-7 16:26:06 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

16

主题

53

帖子

162

积分

初级会员

Rank: 2

积分
162
QQ
 楼主| 发表于 2015-9-8 11:45:43 | 显示全部楼层
jishuang 发表于 2015-9-7 16:26
跨库查询参考http://bbs.wex5.com/forum.php?mod=redirect&goto=findpost&ptid=68125&pid=165124556 ...

恩恩谢谢  可以结贴了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 12:51 , Processed in 0.062117 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表