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

注入

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