我們注意到,越來越多的客戶開始關注流程效率分析這個問題,可能是由于經濟大環境的影響,企業對管理效率的要求更加高了。經常,在日常和客戶的運維對接中,或者是我們對客戶做主動拜訪時候,客戶會咨詢我們該如何做流程效率分析。
例如,客戶運維工作場景中,有比較多的客戶會咨詢如何直觀統計某條流程發起量,或者如何以部門維度進行流程發起量以及辦結率統計。
再例如,我們每年都會對客戶做主動拜訪,每次的拜訪中,我們都會幫客戶分析流程效率,指出可以改善的環節供客戶參考。然后就會有客戶提到,是否可以教給他們一套方法,讓他們自己能直觀實時地在OA界面中呈現相關流程效率數據給管理層,而不需要等我們拜訪時取數據分析,也側面展現了運維人員工作的主觀能動性。畢竟,OA是管理類軟件,那做為運維人員,也可以回歸到管理類軟件的本質去做一些思考,如何從自己的角度幫公司用好軟件,幫公司提升管理效率。
為此,基于客戶的強烈需求,同時結合泛微E9數據中心模塊的強大功能,我們把OA流程效率分析的整塊工作,按照分析維度的不同拆解成多個任務,分配給不同的工程師完成,要求每個人就所分配的任務提供一個完整的分析方法供客戶使用。請看如下內部任務分配截圖:

1.1實現內容描述:
實現在前端門戶查看排名前五流程的發起數量。
1.2實現效果截圖:

1. 在表單建模創建虛擬表單。
select w1.requestid,w1.workflowid,w2.workflowname,h1.lastname,h2.departmentname
from workflow_requestbase w1
left join workflow_base w2 on w1.workflowid=w2.id
left join HrmResource h1 on w1.creater=h1.id
left join HrmDepartment h2 on h1.departmentid=h2.id
where w1.createdate >='20220401'
2. 進入數據中心創建數據集合,引用表單建模創建的虛擬表。





2.1實現內容描述:
在前端門戶中可以實時查看流程退回排行前五的數據。
2.2實現效果截圖:

1. 在建模引擎-表單中創建虛擬表。
2. 虛擬表數據來源于自定義SQL統計所有流程退回記錄數據。
select w1.requestid, w1.workflowid, w2.workflowname from workflow_requestbase w1 left join workflow_base w2 on w1.workflowid=w2.id
left join (select distinct requestid from workflow_requestlog where logtype='3' ) w3 on w1.requestid=w3.requestid where w1.createdate >='20220401' and w3.requestid is not null





3.1實現內容描述:
實現在前端門戶查看部門流程發起數量排行。。
3.2實現效果截圖:


1. 在表單建模創建虛擬表單。
select top 100 * from (select hr.departmentname, count( wreq.requestid) fq_num,
sum(case when wlog.logtype='3' then 1 else 0 end)th_num,
sum(case when wreq.currentnodetype='3' then 1 else 0 end)gd_num
from workflow_requestlog wlog inner join hrmdepartment hr on wlog.operatordept=hr.id
inner join workflow_requestbase wreq on wreq.requestid=wlog.requestid
group by hr.departmentname) m order by m.fq_num desc,m.th_num desc,m.gd_num desc
2. 進入數據中心創建數據集合,引用表單建模創建的虛擬表。



4.1實現內容描述:
實現在前端門戶查看流程辦結數量排行。
4.2實現效果截圖:

1. 在建模引擎-表單中創建虛擬表。
2. 通過指定SQL獲取指定表中的數據:
select a.requestid, a.workflowid, b.workflowname, a.createdate from workflow_requestbase a, workflow_base b where currentnodetype = '3' and a.workflowid=b.id and a.createdate<='2022-05-31' and a.createdate>='2022-04-01'
3. 進入后端數據分析菜單,新建數據集合,選到創建的虛擬表。





5.1實現內容描述:
實現對指定部門(集團總部下的財務部、工程設備部、人力行政部、審計部、運營部)、指定時間段內(2022年4月及5月)的流程發起數、流程退回率、辦結數(即歸檔數)、辦結率(即歸檔率)進行統計并以圖表的形式展示到門戶頁面中。
5.2實現效果截圖:


1. 通過建模創建月份表,添加12個月份。
2. 視圖1:存儲月份(12個月)、流程總數、創建總數、退回總數、歸檔總數報表,獲取4月、5月數據,篩選創建人部門為集團總部下的財務部、工程設備部、人力行政部、審計部、運營部數據統計(SQLSERVER數據庫)。
if exists (select * from sysobjects where name = 'Process_Statistics1')
drop View Process_Statistics1
go
create view Process_Statistics1
as
select
yf,(case when fq_count>0 then fq_count else 0 end) as fqzs,
(case when cj_count>0 then cj_count else 0 end) as cjzs,
(case when th_count>0 then th_count else 0 end) as thzs,
(case when bj_count>0 then bj_count else 0 end) as bjzs from (
(select yf,fq_count,cj_count,bj_count from (
(select yf,b.fq_count,b.cj_count from (
(select yf from uf_yf yf)a
left join
(select a1.fq_month,a1.fq_count,a2.cj_count from (
(select MONTH(createdate)as fq_month,count(requestid) as fq_count from workflow_requestbase
where year(createdate)=year(GETDATE()) and (month(createdate) between 4 and 5) and
(workflowid=7 or workflowid=174 or workflowid=168 or workflowid=237)and creater in
(select id from HrmResource where departmentid in ( select id from HrmDepartment where id in(48,59,52,54,58))) group by MONTH(createdate) )a1
left join (select MONTH(a.createdate)as cj_month,count(a.requestid) as cj_count from workflow_requestbase a , workflow_nodebase
where year(a.createdate)=year(GETDATE()) and month(a.createdate) between 4 and 5 and
(workflowid=7 or workflowid=174 or workflowid=168 or workflowid=237)and a.currentnodeid=e.id and currentnodetype=0
and creater in (select id from HrmResource where departmentid in (select id from HrmDepartment where id in(48,59,52,54,58)))
group by MONTH(a.createdate)
)a2 on a1.fq_month=a2.cj_month))b on a.yf=b.fq_month) )c
left join
(select MONTH(convert(date,lastoperatedate))as bj_month,count(requestid) as bj_count from workflow_requestbase
where year(convert(date,lastoperatedate))=year(GETDATE())and month(convert(date,lastoperatedate)) between 4 and 5 and
(workflowid=7 or workflowid=174 or workflowid=168 or workflowid=237)
and creater in (select id from HrmResource where departmentid in ( select id from HrmDepartment where id in(48,59,52,54,58)))
and currentnodetype=3 group by MONTH(convert(date,lastoperatedate))
)d on c.yf=d.bj_month))e left join
(SELECT MONTH(a.operatedate)as th_month,count(d.requestid) as th_count
from workflow_requestlog a,workflow_base b,workflow_type c,workflow_requestbase d,workflow_nodebase e,hrmresource h
where a.logtype='3' and a.workflowid=b.id and a.requestid=d.requestid and a.nodeid=e.id and a.operator=h.id
and b.workflowtype=c.id and year(a.operatedate)=year(GETDATE()) and month(a.operatedate) between 4 and 5 and
(d.workflowid=7 or d.workflowid=174 or d.workflowid=168 or d.workflowid=237)
and d.creater in (select id from HrmResource where departmentid in ( select id from HrmDepartment where id in(48,59,52,54,58)))
group by MONTH(a.operatedate))f
on e.yf=f.th_month)
3. 創建視圖2:通過視圖1字段以及公式計算獲取最終所需要的信息(SQLSERVER數據庫)。
if exists (select * from sysobjects where name = 'Process_Statistics2')
drop View Process_Statistics2
go
create view Process_Statistics2
as
select yf,fqzs,bjzs,(case when (fqzs-cjzs)>0 then thzs*100/(fqzs-cjzs) else 0 end)as thlv,
(case when (fqzs-cjzs)>0 then bjzs*100/(fqzs-cjzs) else 0 end)as gdlv
from Process_Statistics1
go
4. 建模創建虛擬表,獲取視圖表2(即流程數據匯總表)的數據,調整字段類型,可添加查詢列表臺賬展示到前端。








在華南區域有22個城市有本地化服務機構,總部設立于深圳,下轄東莞、佛山、珠海、江門、汕頭、湛 江、揭陽、河源、韶關、潮州、肇慶、梅州、茂名、湛江,韶關、梅州、南寧、柳州、桂林、賀州、欽 州、河池等華南區域城市以及香港,澳門等區域。
咨詢電話:400-995-0017、0755-83154651? ? ? QQ:3464797577

粵公網安備44030002004387
咨詢微信