|
版本: |
BeX5V3.5 |
小版本号: |
|
|
|
数据库: |
Oracle |
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
我查询任务表的语句大概在0.5秒左右,但在return BizData.query(concept, idColumn, select, from, condition, range, filter, distinct, offset, limit, columns, orderBy, aggregate,
aggregateColumns, variables, dataModel, fnModel);中执行会直接卡死浏览器,能帮忙分析下会上什么原因吗
修改时间范围:
sql 如下:
SELECT
SA_Task.sName,SA_Task.sTypeID,SA_Task.sTypeName,SA_Task.sCreateTime,SA_Task.sActualFinishTime,SA_Task.sESField02,SA_Task.sESField05
FROM
SA_Task SA_Task
WHERE
(( 1 = 1
AND SA_Task.sCreateTime BETWEEN to_date ( '2019-01-25','yyyy-mm-dd' ) AND to_date ( '2020-02-25','yyyy-mm-dd' ))
AND ( 1 = 1 ))
AND (
( SA_Task.sExecutorPersonID = '人员ID' )
AND (
SA_Task.sStatusID = 'tesFinished'
OR SA_Task.sStatusID = 'tesReturned'
OR SA_Task.sStatusID = 'tesAborted'
OR SA_Task.sStatusID = 'tesTransmited'
OR SA_Task.sStatusID = 'tesCanceled'
)
AND (
Nvl( SA_Task.sTypeID, '@' ) = 'matter'
AND SA_Task.sExecutorDeptID IS NOT NULL
OR Nvl( SA_Task.sTypeID, '@' ) <> 'matter'
)
AND NOT EXISTS (
SELECT
1
FROM
SA_Task t
WHERE
1 = 1
AND t.sData1 = SA_Task.sData1
AND t.sExecutorPersonID = SA_Task.sExecutorPersonID
AND Nvl( t.sExpectStartTime, t.sCreateTime ) > Nvl( SA_Task.sExpectStartTime, SA_Task.sCreateTime )
AND t.sCreateTime BETWEEN to_date ( '2019-01-25','yyyy-mm-dd' ) AND to_date ( '2020-02-25','yyyy-mm-dd' )
)
)
|
|