驳回 对能力上架表单进行特殊处理
This commit is contained in:
parent
dc0c5bb726
commit
479cf97d8d
|
@ -1,6 +1,7 @@
|
||||||
package io.renren.common.controller;
|
package io.renren.common.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.modules.activiti.service.ActTaskService;
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
|
@ -15,7 +16,7 @@ import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
@ -42,10 +43,16 @@ public class RejectController {
|
||||||
AtomicReference<Result> result = new AtomicReference<>(new Result().error("重新发起流程失败"));
|
AtomicReference<Result> result = new AtomicReference<>(new Result().error("重新发起流程失败"));
|
||||||
Optional<Task> taskOptional = Optional.ofNullable(taskService.createTaskQuery().taskId(taskId).includeProcessVariables().singleResult());
|
Optional<Task> taskOptional = Optional.ofNullable(taskService.createTaskQuery().taskId(taskId).includeProcessVariables().singleResult());
|
||||||
taskOptional.ifPresent(task -> {
|
taskOptional.ifPresent(task -> {
|
||||||
Map<String, Object> combineResultMap = new HashMap<>();
|
Map<String, Object> combineResultMap = new LinkedHashMap<>();
|
||||||
combineResultMap.putAll(task.getProcessVariables());
|
combineResultMap.putAll(task.getProcessVariables());
|
||||||
combineResultMap.putAll(params);
|
combineResultMap.putAll(params);
|
||||||
|
if (combineResultMap.containsKey("parameterContent")) { // 上架申请特殊处理
|
||||||
|
combineResultMap.remove("parameterContent");
|
||||||
|
combineResultMap.remove("resourceDTO");
|
||||||
|
combineResultMap.put("parameterContent", JSON.toJSONString(combineResultMap));
|
||||||
|
}
|
||||||
taskService.setVariables(task.getId(), combineResultMap); // 更新
|
taskService.setVariables(task.getId(), combineResultMap); // 更新
|
||||||
|
logger.error("-----------" + JSON.toJSONString(combineResultMap));
|
||||||
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 标识驳回标签false
|
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 标识驳回标签false
|
||||||
taskService.setVariable(task.getId(), "completeEntry", Boolean.FALSE); // 标志为非首次录入
|
taskService.setVariable(task.getId(), "completeEntry", Boolean.FALSE); // 标志为非首次录入
|
||||||
taskService.setVariable(task.getId(), "reject", Boolean.FALSE); // 标识流程中是否存在拒绝false
|
taskService.setVariable(task.getId(), "reject", Boolean.FALSE); // 标识流程中是否存在拒绝false
|
||||||
|
|
Loading…
Reference in New Issue