|
@@ -5,6 +5,7 @@ import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
|
|
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
|
+import com.ruoyi.project.listener.pssr.ConfirmTaskCreateListener;
|
|
|
import com.ruoyi.project.pssr.domain.*;
|
|
|
import com.ruoyi.project.pssr.service.*;
|
|
|
import org.activiti.engine.HistoryService;
|
|
@@ -482,6 +483,7 @@ public class TPssrSafetyController extends BaseController {
|
|
|
variables.put("applyUser", userId);
|
|
|
variables.put("confirmUsers1", new ArrayList<>(confirmUsers1));
|
|
|
variables.put("confirmUsers2", new ArrayList<>(confirmUsers2));
|
|
|
+ variables.put("confirmTaskCreateListener", new ConfirmTaskCreateListener());//发送邮件
|
|
|
variables.put("chargePerson", approve.getSubCharge());
|
|
|
//采用key来启动流程定义并设置流程变量,返回流程实例
|
|
|
ProcessInstance pi = runtimeService.startProcessInstanceByKey("pssr2confirm", String.valueOf(businessKey), variables);
|
|
@@ -572,6 +574,7 @@ public class TPssrSafetyController extends BaseController {
|
|
|
variables.put("applyUser", userId);
|
|
|
variables.put("confirmUsers1", new ArrayList<>(confirmUsers1));
|
|
|
variables.put("confirmUsers2", new ArrayList<>(confirmUsers2));
|
|
|
+ variables.put("confirmTaskCreateListener", new ConfirmTaskCreateListener());//发送邮件
|
|
|
variables.put("chargePerson", approve.getSubCharge());
|
|
|
//采用key来启动流程定义并设置流程变量,返回流程实例
|
|
|
ProcessInstance pi = runtimeService.startProcessInstanceByKey("pssr2confirm", String.valueOf(businessKey), variables);
|
|
@@ -662,6 +665,7 @@ public class TPssrSafetyController extends BaseController {
|
|
|
variables.put("applyUser", userId);
|
|
|
variables.put("confirmUsers1", new ArrayList<>(confirmUsers1));
|
|
|
variables.put("confirmUsers2", new ArrayList<>(confirmUsers2));
|
|
|
+ variables.put("confirmTaskCreateListener", new ConfirmTaskCreateListener());//发送邮件
|
|
|
variables.put("chargePerson", approve.getSubCharge());
|
|
|
//采用key来启动流程定义并设置流程变量,返回流程实例
|
|
|
ProcessInstance pi = runtimeService.startProcessInstanceByKey("pssr2confirm", String.valueOf(businessKey), variables);
|
|
@@ -752,6 +756,7 @@ public class TPssrSafetyController extends BaseController {
|
|
|
variables.put("applyUser", userId);
|
|
|
variables.put("confirmUsers1", new ArrayList<>(confirmUsers1));
|
|
|
variables.put("confirmUsers2", new ArrayList<>(confirmUsers2));
|
|
|
+ variables.put("confirmTaskCreateListener", new ConfirmTaskCreateListener());//发送邮件
|
|
|
variables.put("chargePerson", approve.getSubCharge());
|
|
|
//采用key来启动流程定义并设置流程变量,返回流程实例
|
|
|
ProcessInstance pi = runtimeService.startProcessInstanceByKey("pssr2confirm", String.valueOf(businessKey), variables);
|
|
@@ -842,6 +847,7 @@ public class TPssrSafetyController extends BaseController {
|
|
|
variables.put("applyUser", userId);
|
|
|
variables.put("confirmUsers1", new ArrayList<>(confirmUsers1));
|
|
|
variables.put("confirmUsers2", new ArrayList<>(confirmUsers2));
|
|
|
+ variables.put("confirmTaskCreateListener", new ConfirmTaskCreateListener());//发送邮件
|
|
|
variables.put("chargePerson", approve.getSubCharge());
|
|
|
//采用key来启动流程定义并设置流程变量,返回流程实例
|
|
|
ProcessInstance pi = runtimeService.startProcessInstanceByKey("pssr2confirm", String.valueOf(businessKey), variables);
|