天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 2135|回复: 0

[Iscript] 能否提供流程历史的实现sql【sql-流程历史】

[复制链接]
purple 发表于 2012-3-27 15:22:41 | 显示全部楼层 |阅读模式
Q:现做项目,需要实现一个类似流程历史的功能,能否提供平台目前已实现的流程历史sql以供参考?

A:可以的。流程历史实现sql类似于:
  1. select a.actiontime 审批时间,a.startnodename 流程状态,(select name from t_user where id=b.auditor) 审批人 ,a.attitude 备注 from (select row_number() over () num,actiontime,startnodename,attitude from T_RELATIONHIS where docid='11e0-fa2c-30cb7577-a62d-31678517272d' and startnodename<>'开始') a,(select row_number() over () num,auditor from T_RELATIONHIS where docid='11e0-fa2c-30cb7577-a62d-31678517272d' and auditor is not null) b where a.num=b.num and b.auditor is not null order by a.ACTIONTIME desc
复制代码

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 12:41

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表