select
w.workflowid,
w.requestid,
w.requestname,
w.requestmark,
CONVERT(char(11),w.createdate,120)+CONVERT(char(12),w.createtime,114) as 'createdate',
h.lastname,
c.groupid,
t.typename,
n.nodename,
CONVERT(char(11),c.receivedate,120)+CONVERT(char(12),c.receivetime,114) as 'receivedate',
CONVERT(char(11),c.operatedate,120)+CONVERT(char(12),c.operatetime,114) as 'operatedate',
CAST(CAST(DATEDIFF(ss, receivedate, CONVERT(char(11),c.operatedate,120)+CONVERT(char(12),c.operatetime,114)) / (60*60*24) AS INT) AS VARCHAR) + '天'
CAST(CAST(DATEDIFF(ss, CONVERT(char(11),c.receivedate,120)+CONVERT(char(12),c.receivetime,114), CONVERT(char(11),c.operatedate,120)+CONVERT(char(12),c.operatetime,114)) % 86400 / 3600 AS INT) AS VARCHAR) + '小时'
CAST(CAST(DATEDIFF(ss, CONVERT(char(11),c.receivedate,120)+CONVERT(char(12),c.receivetime,114), CONVERT(char(11),c.operatedate,120)+CONVERT(char(12),c.operatetime,114)) % 3600 / 60 AS INT) AS VARCHAR) + '分'
CAST(CAST(DATEDIFF(ss, CONVERT(char(11),c.receivedate,120)+CONVERT(char(12),c.receivetime,114), CONVERT(char(11),c.operatedate,120)+CONVERT(char(12),c.operatetime,114)) % 60 AS INT) AS VARCHAR) + '秒' AS 'SpendTime'
from workflow_requestbase w
inner join workflow_currentoperator c
on w.requestid=c.requestid
inner join hrmresource h
inner join workflow_nodebase n
inner join workflow_type t
and w.workflowid in
(select wfversionid from workflow_versionInfo where wfid=573)
-- and w.requestid=606859
-- order by groupid
ECOLOGY9.0查询流程经过节点的详细信息
kaka_19942023-10-06 23:25
相关推荐
Henry-SAP6 小时前
PP的生产调度员(Production Scheduler)的角色与配置兴趣互联8 小时前
jeecgboot nacos2.3.2 使用pgsqlhudd6688 小时前
JavaEE 初阶 - 文件操作和IOFlynn Liang9 小时前
HikariCP 连接池不是越大越好:I/O 密集型 Java 服务的数据库容量工程学长毕设9 小时前
基于SpringBoot社区快递驿站物流配送系统-附源码Flynt9 小时前
Java4Shell 实测:EPYC 一跑就中招,关掉 Base64 硬件加速,1KB 解码慢 14 倍Resean022310 小时前
Spring 源码分析(七)AOP 原理(上):代理的创建Tangq一定可以的10 小时前
Spring AI Advisor 详解 - 给大模型调用加上“切面“,日志/过滤/记忆一键搞定小巫编程室10 小时前
我造了一个 Java 能力包:让 AI 直接调用你的业务代码小乖写代码10 小时前
消息、回执与媒体 · msgstore.db · Messages, Receipts, and Media