From 6c59696d55f87e6ae9ccea20937097a7b4b125ae Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 13 Oct 2025 11:46:13 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-13=20BM=20Dead=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TechnicalSpecificationServiceImpl.java | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java index c4304cbe..a8527203 100644 --- a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java +++ b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java @@ -2066,32 +2066,33 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification public void bmStatusToDead(PlmTechnicalSpecificationSheetData data) { // 查询特殊权限 校验是否可以执行操作 List processFormList = changeManagementMapper.queryRequestId(data.getSite(), "", data.getCodeNo()); - if (processFormList.isEmpty()) { - throw new RuntimeException("未发起流程审批,不允许Dead!"); - } - ProcessFormEntity processForm = processFormList.get(0); - PlmProcessControllBaseData cData = new PlmProcessControllBaseData(); - cData.setSite(data.getSite()); - cData.setNodeId(processForm.getNodeId()); - cData.setWorkflowId(processForm.getWorkflowId()); - cData.setRoleId(6); - List controlList = requestManageMapper.getProcessSelect2(cData); - if (controlList.isEmpty()) { - throw new RuntimeException("当前节点不能执行该操作,请检查流程节点配置!"); - } - - // 调用删除统一代办消息的接口,删除已经发送的消息 - DeleteUserRequestInfoParam deleteUserRequestInfoParam = new DeleteUserRequestInfoParam(); - deleteUserRequestInfoParam.setRequestId(processForm.getWorkflowId() + processForm.getRequestId()); - deleteUserRequestInfoParam.setSyscode("PLM"); - List oaUserList = changeManagementMapper.getOaUserIdByIsRemark(data.getSite(), data.getCodeNo(), "0"); - for (OaUserData oaUser : oaUserList) { - deleteUserRequestInfoParam.setUserId(oaUser.getId()); - String deleteUserRequestInfoURL = apiUrlOa + "/oa/interface/deleteUserRequestInfo"; - ResponseData deleteUserRequestInfoResponses = HttpClientUtil.doPostByRawWithOA(deleteUserRequestInfoURL, deleteUserRequestInfoParam); + if (!processFormList.isEmpty()) { + // throw new RuntimeException("未发起流程审批,不允许Dead!"); + + ProcessFormEntity processForm = processFormList.get(0); + PlmProcessControllBaseData cData = new PlmProcessControllBaseData(); + cData.setSite(data.getSite()); + cData.setNodeId(processForm.getNodeId()); + cData.setWorkflowId(processForm.getWorkflowId()); + cData.setRoleId(6); + List controlList = requestManageMapper.getProcessSelect2(cData); + if (controlList.isEmpty()) { + throw new RuntimeException("当前节点不能执行该操作,请检查流程节点配置!"); + } + + // 调用删除统一代办消息的接口,删除已经发送的消息 + DeleteUserRequestInfoParam deleteUserRequestInfoParam = new DeleteUserRequestInfoParam(); + deleteUserRequestInfoParam.setRequestId(processForm.getWorkflowId() + processForm.getRequestId()); + deleteUserRequestInfoParam.setSyscode("PLM"); + List oaUserList = changeManagementMapper.getOaUserIdByIsRemark(data.getSite(), data.getCodeNo(), "0"); + for (OaUserData oaUser : oaUserList) { + deleteUserRequestInfoParam.setUserId(oaUser.getId()); + String deleteUserRequestInfoURL = apiUrlOa + "/oa/interface/deleteUserRequestInfo"; + ResponseData deleteUserRequestInfoResponses = HttpClientUtil.doPostByRawWithOA(deleteUserRequestInfoURL, deleteUserRequestInfoParam); // if (!"0".equals(deleteUserRequestInfoResponses.getCode())) { // throw new RuntimeException("删除异构系统指定人员待办流程异常信息:" + deleteUserRequestInfoResponses.getMsg()); // } + } } // 将技术参数卡的状态改为"Dead"