use UFTData021114_000001 --T+业务单据审批信息查询脚本
select SM_VoucherType.name as 业务类型,
EntityCode AS 单据编码 ,
AuditTime as 审批时间,
case eap_wfauditlog.AuditAction
when ‘0‘ then ‘提交‘
when ‘1‘ then ‘同意‘
when ‘2‘ then ‘驳回上一级‘
when ‘3‘ then ‘驳回制单人‘
else ‘其他‘ end as 审批动作,
AuditorName as 审批人,
Opinion 审批批语
from eap_wfauditlog
left join SM_VoucherType on BizCode =SM_VoucherType.code
order by SM_VoucherType.name ,EntityCode,AuditTime
时间: 2024-10-03 21:53:54