|

楼主 |
发表于 2015-5-6 10:25:23
|
显示全部楼层
代码见附件
查询锁表语句 基本上就是诸如
String query = "select t, t.sName, t.sCURL, t.sProcess, t.sActivity, t.sCreateTime, t.sExecutorFName, t.sExecutorNames, t.sEURL, t.sCreatorFName, t.sShortcut, t.sHints, t.sCreatorFID, t.sExecutorFID, t.sKindID " +
" from SA_Task t " +
" where (t.sKindID='tkTask' or t.sKindID='tkExecutor' or t.sKindID='tkNotice' or t.sKindID IS NULL) " +
" and (t.sStatusID='tesFinished' or t.sStatusID='tesAborted' or t.sStatusID='tesCanceled' or t.sStatusID='tesReturned' ) " +
" and (t.sTypeID IS NULL or t.sTypeID <> 'WORKREMIND')" +
" and " + condition +
" order by t.sCreateTime desc " +
" limit 0,8 ";
|
|