Merge branch 'dev' into docker_package
This commit is contained in:
commit
fa34ec0c2b
|
@ -168,11 +168,6 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(demandDataDTO.getApplyUserId())
|
&& StringUtils.isNotEmpty(demandDataDTO.getApplyUserId())
|
||||||
&& demandDataDTO.getApplyUserId().equals(assignee)) {
|
&& demandDataDTO.getApplyUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
|
||||||
Thread.sleep(1000l);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
|
|
|
@ -5,6 +5,7 @@ import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import io.renren.common.annotation.ActivitiNoticeOperation;
|
import io.renren.common.annotation.ActivitiNoticeOperation;
|
||||||
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.demandComment.dto.TDemandCommentDTO;
|
import io.renren.modules.demandComment.dto.TDemandCommentDTO;
|
||||||
import io.renren.modules.demandComment.service.TDemandCommentService;
|
import io.renren.modules.demandComment.service.TDemandCommentService;
|
||||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||||
|
@ -157,11 +158,8 @@ public class CommentListener implements TaskListener, ExecutionListener, Activit
|
||||||
&& StringUtils.isNotEmpty(tDemandCommentDTO.getCreator().toString())
|
&& StringUtils.isNotEmpty(tDemandCommentDTO.getCreator().toString())
|
||||||
&& tDemandCommentDTO.getCreator().toString().equals(assignee)) {
|
&& tDemandCommentDTO.getCreator().toString().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,11 +228,8 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
||||||
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import io.renren.common.annotation.ActivitiNoticeOperation;
|
import io.renren.common.annotation.ActivitiNoticeOperation;
|
||||||
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.processForm.dto.TAbilityApplicationDTO;
|
import io.renren.modules.processForm.dto.TAbilityApplicationDTO;
|
||||||
import io.renren.modules.resource.dto.ResourceDTO;
|
import io.renren.modules.resource.dto.ResourceDTO;
|
||||||
import io.renren.modules.resource.service.ResourceService;
|
import io.renren.modules.resource.service.ResourceService;
|
||||||
|
@ -140,11 +141,8 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
||||||
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,11 +208,8 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
|
||||||
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
||||||
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package io.renren.modules.processForm.listener.v2;
|
package io.renren.modules.processForm.listener.v2;
|
||||||
|
|
||||||
import io.renren.common.annotation.ActivitiNoticeOperation;
|
import io.renren.common.annotation.ActivitiNoticeOperation;
|
||||||
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.resource.service.ResourceService;
|
import io.renren.modules.resource.service.ResourceService;
|
||||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||||
import io.renren.modules.sys.dto.SysRoleDTO;
|
import io.renren.modules.sys.dto.SysRoleDTO;
|
||||||
|
@ -110,11 +111,8 @@ public class DataCenterListenerV2 implements TaskListener, ExecutionListener, Ac
|
||||||
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
||||||
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import io.renren.common.annotation.ActivitiNoticeOperation;
|
import io.renren.common.annotation.ActivitiNoticeOperation;
|
||||||
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.resource.dto.ResourceDTO;
|
import io.renren.modules.resource.dto.ResourceDTO;
|
||||||
import io.renren.modules.resource.entity.ResourceEntityDelFlag;
|
import io.renren.modules.resource.entity.ResourceEntityDelFlag;
|
||||||
import io.renren.modules.resource.service.ResourceService;
|
import io.renren.modules.resource.service.ResourceService;
|
||||||
|
@ -149,11 +150,8 @@ public class ResourceUndercarriageListener implements TaskListener, ExecutionLis
|
||||||
&& StringUtils.isNotEmpty(re.getCreator().toString())
|
&& StringUtils.isNotEmpty(re.getCreator().toString())
|
||||||
&& re.getCreator().toString().equals(assignee)) {
|
&& re.getCreator().toString().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import io.renren.common.annotation.ActivitiNoticeOperation;
|
import io.renren.common.annotation.ActivitiNoticeOperation;
|
||||||
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.processForm.service.ApiGatewayService;
|
import io.renren.modules.processForm.service.ApiGatewayService;
|
||||||
import io.renren.modules.resource.dto.ResourceDTO;
|
import io.renren.modules.resource.dto.ResourceDTO;
|
||||||
import io.renren.modules.resource.entity.ResourceEntityDelFlag;
|
import io.renren.modules.resource.entity.ResourceEntityDelFlag;
|
||||||
|
@ -227,11 +228,8 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
||||||
&& StringUtils.isNotEmpty(resourceMountApplyDTO.getUserId())
|
&& StringUtils.isNotEmpty(resourceMountApplyDTO.getUserId())
|
||||||
&& resourceMountApplyDTO.getUserId().equals(assignee)) {
|
&& resourceMountApplyDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
try {
|
taskService.setVariable(delegateTask.getId(), ActTaskService.Task_HANDLE_STATE, ActTaskService.Task_HANDLE_STATE_AGREE);
|
||||||
Thread.sleep(100l);
|
taskService.setVariable(delegateTask.getId(), "backToFirst", Boolean.FALSE);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue