提交 1252b7a2 编写于 作者: sq3536's avatar sq3536

注入

上级 435d12f8
......@@ -34,7 +34,7 @@ import java.io.*;
import java.sql.Timestamp;
import java.util.*;
@Service
@Service("wfCoreService")
@Slf4j
public class WFCoreService
{
......@@ -458,7 +458,8 @@ public class WFCoreService
public void execute(DelegateExecution delegateExecution,Object activedata) throws Exception {
String entity = (String)delegateExecution.getVariable("pass");
//String entity = (String)delegateExecution.getVariable("pass");
System.out.println("test");
// Boolean val = (Boolean) pass.getValue(delegateExecution);
//logger.info("=ProductFactoryNewProductTask=>business:{} prossId:{} pass:{}",delegateExecution.getProcessInstanceBusinessKey(),delegateExecution.getProcessInstanceId(),val.toString());
......@@ -477,20 +478,27 @@ public class WFCoreService
return new Timestamp(new java.util.Date().getTime());
}
public String getGroupUsers(String groupId, AuthenticationUser user, EntityBase activedata)
public String getGroupUsers(String groupIds, AuthenticationUser user, LinkedHashMap<String,Object> activedata)
{
String strUsers="";
WFGroup group=iwfGroupService.get(groupId);
List<WFMember> list=group.getWfmember();
if (list!=null)
if(StringUtils.isEmpty(groupIds))
return "";
String[] groups=groupIds.split(",");
for(String groupId:groups)
{
for(WFMember member : list)
WFGroup group=iwfGroupService.get(groupId);
List<WFMember> list=group.getWfmember();
if (list!=null)
{
if(StringUtils.isEmpty(strUsers))
strUsers+=",";
strUsers+=member.getUserid();
for(WFMember member : list)
{
if(!StringUtils.isEmpty(strUsers))
strUsers+=",";
strUsers+=member.getUserid();
}
}
}
return strUsers;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册