Commit 6c770e91 authored by 赵啸非's avatar 赵啸非

修改部分pom

parent 805a5105
......@@ -567,7 +567,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
@Override
public ApiRespPdu<Map<String, Object>> processVariables(CommonTaskReq req) {
log.info(String.format("获取流程变量!taskId:%s", req.getTaskId()));
log.info("获取流程变量!taskId:{}", req.getTaskId());
ApiRespPdu<Map<String, Object>> rsp = new ApiRespPdu<>();
rsp.setCode(YesNoEnum.YES.getValue());
try {
......@@ -593,11 +593,14 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
@Override
public ApiRespPdu<String> setProcessVariables(CommonTaskReq req) {
log.info(String.format("设置流程变量!taskId:%s", req.getTaskId()));
log.info("设置流程变量!taskId:{}", req.getTaskId());
ApiRespPdu<String> rsp = new ApiRespPdu<>();
rsp.setCode(YesNoEnum.YES.getValue());
try {
String processInstanceId = taskService.createTaskQuery().taskId(req.getProcessInstanceId()).singleResult().getProcessInstanceId();
String processInstanceId = taskService.createTaskQuery().taskId(req.getTaskId()).singleResult().getProcessInstanceId();
if (ObjectUtils.isEmpty(processInstanceId)) throw new AppException("processInstanceId is null !");
runtimeService.setVariables(processInstanceId, req.getVariables());
return rsp;
} catch (Exception e) {
......@@ -1361,9 +1364,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
ExtendHisprocinstEntity condition = new ExtendHisprocinstEntity();
condition.setProcessInstanceId(baseTaskReq.getProcessInstanceId());
if(ObjectUtils.isEmpty(baseTaskReq.getProcessStatusEnum())){
if (ObjectUtils.isEmpty(baseTaskReq.getProcessStatusEnum())) {
extendHisprocinstEntity.setProcessStatus(ProcessStatusEnum.SPZ.name());
}else {
} else {
extendHisprocinstEntity.setProcessStatus(baseTaskReq.getProcessStatusEnum().toString());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment