This commit is contained in:
@jyuhsin
2026-03-31 16:55:35 +08:00
parent dc71dc22d8
commit 6adf949e3e
184 changed files with 2333 additions and 556 deletions
@@ -22,7 +22,7 @@ import org.nutz.lang.util.NutMap;
import java.util.List;
/**
* 获取协会审批人根据流程变量参数(clubId) 必传
* 获取社团审批人根据流程变量参数(clubId) 必传
*/
public class FlowClubPresidentByArgsAssignmentHandler implements AssignmentHandler {
@Override
@@ -45,7 +45,7 @@ public class FlowClubPresidentByArgsAssignmentHandler implements AssignmentHandl
@Override
public String getMessage() {
return "获取协会会长(根据args中的clubId)";
return "获取社团会长(根据args中的clubId)";
}
@Override
@@ -51,10 +51,12 @@ public class FlowCommonService {
ProcessTask processTask = flowEngine.processTaskService().getById(processTaskId);
ProcessTask parentTask = flowEngine.processTaskService().getById(processTask.getTaskParentId());
Dict taskArgs = Json.fromJson(Dict.class, parentTask.getVariable());
if(taskArgs.containsKey("tf_sourceTaskKey") && !taskArgs.getBool("tf_audit")) {
submitType = ProcessSubmitTypeEnum.JUMP.getCode();
args.put(FlowConst.TASK_NAME, taskArgs.getStr("tf_sourceTaskKey"));
if(parentTask != null) {
Dict taskArgs = Json.fromJson(Dict.class, parentTask.getVariable());
if(taskArgs.containsKey("tf_sourceTaskKey") && !taskArgs.getBool("tf_audit")) {
submitType = ProcessSubmitTypeEnum.JUMP.getCode();
args.put(FlowConst.TASK_NAME, taskArgs.getStr("tf_sourceTaskKey"));
}
}
args.put(FlowConst.SUBMIT_TYPE, submitType);