获取单据当前工作流状态

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

获取单据当前工作流状态

SELECT 

assign.FRECEIVERNAMES 处理人

,assign_l.FASSIGNNAME 节点

,approval.FASSIGNID

,approval.FOBJECTTYPEID 单据id

,approval.FKEYVALUE 单据id

FROM  (    

  select FASSIGNID, FOBJECTTYPEID, FKEYVALUE  from (     

        select ROW_NUMBER() over(partition by FOBJECTTYPEId, FKEYVALUE order by fdealtime desc) RowNum ,T_WF_APPROVALASSIGN.* from T_WF_APPROVALASSIGN    ) as t1  

  where RowNum = 1   

  ) approval   

  left join T_WF_ASSIGN assign on approval.FASSIGNID = assign.FASSIGNID   

  left join T_WF_ASSIGN_L assign_l on assign.FASSIGNID = assign_l.FASSIGNID and FLOCALEID = 2052   

  where assign.FSTATUS = 0 

--and approval.FKEYVALUE= '124388'


获取单据当前工作流状态

SELECT assign.FRECEIVERNAMES 处理人,assign_l.FASSIGNNAME 节点,approval.FASSIGNID,approval.FOBJECTTYPEID 单据id,approval.FKEYVAL...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息