select
a.requestid '請求id',
a.requestname '請求標題',
node.nodename '當前節點名稱',
(case when a.creater=1 then '系統管理員' else res.lastname end) '建立人姓名',
a.createdate + ' ' + a.createtime '建立時間',
cr.lastname '接收人姓名',
cr.receivedate + ' ' + cr.receivetime '接收時間',
base.workflowname '工作流名稱',
a.status '出口名稱',
(case when a.currentnodetype=0 then '建立節點' when a.currentnodetype=1 then '審批節點' when a.currentnodetype=2 then '處理節點' else '其他節點' end) '節點型別'
from workflow_requestbase a
inner join workflow_nodebase node on node.id=a.currentnodeid
left join hrmresource res on res.id=a.creater
inner join workflow_base base on base.id=a.workflowid
inner join (select requestid, r1.lastname, receivedate, receivetime from workflow_currentoperator c1
inner join hrmresource r1 on r1.id=c1.userid
where c1.id in (select max(id) from workflow_currentoperator group by requestid)) cr on cr.requestid=a.requestid
where currentnodetype != 3
and (
( exists (
select 1
from workflow_base wb
where a.workflowid = wb.id
and wb.isvalid in ('0', '1', '2', '3')
and wb.id in (
select id
from workflow_base workbase, workflow_versioninfo workversion
where workbase.id = workversion.wfid
and wfversionid in (
select workflowid from workflow_monitor_detail where infoid = 0))
) ))and a.deleted < 1
order by a.requestid desc
E8刷機日誌
去年入手乙個天嵌e8卡片電腦,其介面全 實惠,一下子就吸引了我,馬上購入一塊。由於是第一次使用天嵌的產品,到手是乙個安卓系統,當時據說還不支援ubuntu,等了段時間,一直莫有等到ubuntu問世。大概等了乙個多月吧,據說支援ubuntu了,我以為會了乙個系統給我呢,沒想到是ubuntu刷機教程。瞬...
編譯天嵌E8核心原始碼
不久前,買了一塊天嵌e8的板,拿到資料後就試著編譯一下所給的核心原始碼。解壓,進入原始碼目錄,發現沒有.config檔案。於是 cp config for e8 linux config 然後,make zimage 編譯核心時,會出現這樣的乙個錯誤 drivers media video sams...
E8工作流與Memcached整合
memcached是什麼 memcached是乙個自由開源,高效能,分布式記憶體物件快取系統。memcached是以livejournal旗下danga interactive公司的brad fitzpatric為首開發的一款軟體。現在已成為mixi hatena facebook vox live...