|
|
@@ -38,6 +38,7 @@ import com.ningdatech.pmapi.todocenter.zwdd.model.MessageContent; |
|
|
|
import com.ningdatech.pmapi.todocenter.zwdd.model.MessageText; |
|
|
|
import com.ningdatech.pmapi.user.entity.UserInfo; |
|
|
|
import com.ningdatech.pmapi.user.service.IUserInfoService; |
|
|
|
import com.ningdatech.zwdd.client.ZwddClient; |
|
|
|
import com.wflow.bean.do_.UserDo; |
|
|
|
import com.wflow.bean.entity.WflowCcTasks; |
|
|
|
import com.wflow.bean.entity.WflowModelHistorys; |
|
|
@@ -118,8 +119,8 @@ public class TodoCenterManage { |
|
|
|
private final IUserInfoService userInfoService; |
|
|
|
private final IProjectService projectService; |
|
|
|
private final StateMachineUtils stateMachineUtils; |
|
|
|
// @Resource(name = "executableClient") |
|
|
|
// private ExecutableClient client; |
|
|
|
|
|
|
|
private final ZwddClient zwddClient; |
|
|
|
|
|
|
|
/** |
|
|
|
* 待办中心待我处理项目列表查询 |
|
|
@@ -491,10 +492,13 @@ public class TodoCenterManage { |
|
|
|
Task currentTask = taskService.createTaskQuery().processInstanceId(processInstanceId).singleResult(); |
|
|
|
// 获取审核人信息,向审核人发送工作通知 |
|
|
|
String currentUserId = currentTask.getAssignee(); |
|
|
|
// UserInfo auditUserInfo = userInfoService.getById(Long.valueOf(currentUserId)); |
|
|
|
UserInfo auditUserInfo = userInfoService.getById(Long.valueOf(currentUserId)); |
|
|
|
// TODO 获取浙政钉用户dingKey,向其发送浙政钉工作通知 |
|
|
|
String msg = String.format(PASS_MSG_TEMPLATE, null, projectName); |
|
|
|
// sendWorkNotice(auditUserInfo,msg); |
|
|
|
// 构建唯一的消息ID |
|
|
|
String bizMsgId = "ZB_URGE_NOTICE_" + "_" + auditUserInfo.getDeptId() + "_" + auditUserInfo.getUserId(); |
|
|
|
String dingKey = "123"; |
|
|
|
zwddClient.sendWorkNotice(dingKey,bizMsgId,msg); |
|
|
|
return; |
|
|
|
} |
|
|
|
// 获取bpm对象 |
|
|
|