日常运维-业务流程信息数据导出SQL
2022/1/24 19:10:15
本文主要是介绍日常运维-业务流程信息数据导出SQL,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
场景说明:OA业务流程需要导出基础信息及审批记录信息
场景类型:常规
涉及版本:E-cology9
解决方案:
1、流程引擎基础表
select * from workflow_base 流程基本信息表
select * from workflow_type 流程类型信息表
select * from workflow_requestlog 流程审批记录信息表
select * from workflow_nodebase 流程节点信息表
select * from workflow_requestbase 流程记录信息表
2、流程基本信息数据导出SQL
select req.requestid 请求id, req.workflowid 流程ID, type.typename 流程类型, base.workflowname 流程名称, req.REQUESTMARK 流程编号, req.requestname 标题, req.status 流转状态, req.creater 创建人, req.createdate 创建日期 , req.createtime 创建时间 from workflow_requestbase req left join workflow_base base on req.workflowid = base.id left join workflow_type type on base.workflowtype = type.id where req.workflowid !=1 and req.status is not null -- and type.id = '2521' and -- base.workflowname like '%流程' and -- req.createdate > '2021-01-01' and -- req.requestid = '1034037'
3、流程审批记录数据导出SQL
select log.requestid 请求id, log.workflowid 流程ID, log.nodeid 节点id, node.nodename 节点名称, log.operator 操作者, log.operatedate 操作日期, log.operatetime 操作时间, to_char(log.remark) 签字信息 from workflow_requestlog log left join workflow_nodebase node on log.nodeid = node.id where log.requestid in( select req.requestid from workflow_requestbase req left join workflow_base base on req.workflowid = base.id left join workflow_type type on base.workflowtype = type.id where -- type.id = '2521' and -- base.workflowname like '%流程' and -- req.createdate > '2021-01-01' and -- req.requestid = '1034037' req.workflowid !=1 and req.status is not null )
这篇关于日常运维-业务流程信息数据导出SQL的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23Springboot应用的多环境打包入门
- 2024-11-23Springboot应用的生产发布入门教程
- 2024-11-23Python编程入门指南
- 2024-11-23Java创业入门:从零开始的编程之旅
- 2024-11-23Java创业入门:新手必读的Java编程与创业指南
- 2024-11-23Java对接阿里云智能语音服务入门详解
- 2024-11-23Java对接阿里云智能语音服务入门教程
- 2024-11-23JAVA对接阿里云智能语音服务入门教程
- 2024-11-23Java副业入门:初学者的简单教程
- 2024-11-23JAVA副业入门:初学者的实战指南