用户jj4J79687(提问者)select a.nodename||\'(\'||a.lastname||\')\' as nodeinfo
,
a.operatedate||\' \'||a.operatetime as begintime,
\'时长:\'||case when a.nodename=\'归档\' then 0 else round(a.operationtime,0) end || \'mi\' as dealtime
from dwd.t_dwd_oa_flow_detail a where
${if(len(requestid) == 0,\" requestid in ( select a.requestid
from dwd.T_DWD_OA_FLOW_DETAIL A
where
a.NODENAME not in(\'填写申请\',\'创建\',\'申请人发起\') and a.nodename not like \'%归档%\'
and a.isremark<>\'4\' and a.lastname=\'${UserName}\'
${if(len(workflowname) == 0,\" and 1=1 \",\" and workflowname = \'\" + workflowname+ \"\'\")}
${if(len(typename) == 0,\" and 1=1 \",\" and typename = \'\" + typename+ \"\'\")}
and receivemonth=to_char(sysdate-1,\'yyyy-mm\')
and rownum=1)\" ,\" requestid = \" + requestid)}
--报错