审批通知跳转

This commit is contained in:
2025-12-16 14:43:55 +08:00
parent fac647083e
commit e2092532f5

View File

@@ -26,6 +26,7 @@ import com.honeycombis.honeycom.flow.task.dto.*;
import com.honeycombis.honeycom.flow.task.entity.*;
import com.honeycombis.honeycom.flow.task.entity.Process;
import com.honeycombis.honeycom.flow.task.service.*;
import com.honeycombis.honeycom.msg.api.dto.MessageBusinessParamDTO;
import com.honeycombis.honeycom.msg.api.dto.MessageOpenApiDTO;
import com.honeycombis.honeycom.msg.api.feign.RemoteMessageService;
import com.honeycombis.honeycom.user.feign.HoneycomUserServiceFeign;
@@ -400,6 +401,11 @@ public class RemoteServiceImpl implements IRemoteService {
messageOpenApiDTO.setContent("收到一条" + process.getName() + "审批任务代办,请前往任务中心-代办任务-流程任务审批");
messageOpenApiDTO.setStaffCode(String.valueOf(processNodeRecordAssignUserParamDto.getUserId()));
messageOpenApiDTO.setTenantCode(String.valueOf(TenantContextHolder.getTenantId()));
JSONObject jsonObject = new JSONObject();
jsonObject.put("flowId", processNodeRecordAssignUserParamDto.getProcessInstanceId());
jsonObject.put("taskId", processNodeRecordAssignUserParamDto.getTaskId());
messageOpenApiDTO.setBusinessId(JSON.toJSONString(jsonObject));
log.info("审批节点发送通知消息:{}", JSON.toJSONString(messageOpenApiDTO));
remoteMessageService.pushMessage(messageOpenApiDTO);
return R.ok();