首页 > 代码库 > 024_判断数据在审批流中

024_判断数据在审批流中

    List<ProcessInstance> lst= [SELECT TargetObjectId 
                                 FROM ProcessInstance 
                                 WHERE isDeleted = false  AND id in ( SELECT processInstanceId 
                                                                      FROM ProcessInstanceworkitem 
                                                                      WHERE isdeleted = false AND ActorId = :userId  / GroupId)];

024_判断数据在审批流中