select t.creatortime,
t.title,
gw.fwj_bh_mc || '[' || gw.fwj_bh_year || ']' || gw.fwj_bh_no as bh,
'' as fs,
(select h.username
from wf_history_course h
where h.rowguid = t.rowguid
and h.workitemid = (select w.workitemid
from wf_workitem w
where w.flowinstanceid = t.flowinstanceid
and w.actdefid = 'ngrng'
and rownum = 1)) cbr,
(select h.deptname
from wf_history_course h
where h.rowguid = t.rowguid
and h.workitemid = (select w.workitemid
from wf_workitem w
where w.flowinstanceid = t.flowinstanceid
and w.actdefid = 'ngrng'
and rownum = 1)) cbcs,
(select h.username
from wf_history_course h
where h.rowguid = t.rowguid
and h.workitemid = (select w.workitemid
from wf_workitem w
where w.flowinstanceid = t.flowinstanceid
and w.actdefid = 'ldps'
and rownum = 1)) LDPS
from wf_workflowinstance t, Gw_t_Gwlzb gw
where t.rowguid = gw.sljdid
and t.flowdefid = 'gwlz:fwlc'
and (select count(*)
from wf_workitem w
where w.flowinstanceid = t.flowinstanceid
and w.actdefid = 'yz') > 0
一对一对多关系 勿忘
- 博客分类:
- oracle
相关推荐
勿忘国耻振兴中华.doc
勿忘国耻圆梦中华.docx
家居装修勿忘防螨.docx
住店勿忘消防安全.docx
居安思危勿忘人防手抄报.doc
勿忘国耻__圆梦中华.doc
勿忘国耻富强中华主题班会.doc
居安思危勿忘人防手抄报精选.doc
“打扮”汽车勿忘安全.docx
疫情当前勿忘初衷网课学习心得.doc
教师资格证考试作文范文:勿忘初心.pdf
疫情当前勿忘初衷网课学习心得范文.doc
数学学科解题后勿忘“六思.doc
勿忘国耻振兴中华主题班会主持词.docx
家长勿忘孩子居家的消防安全知识.doc
九月份勿忘国耻国旗下的讲话稿.docx
县级骨干教师培训总结坚持学习勿忘初衷.doc
勿忘国耻振兴中华主题班会设计及材料.doc
勿忘国耻圆梦中华主题班会[1].ppt
节能环保行业科创板系列之一:环保科创:勿忘初心,行稳致远.pdf