Browse Source

2025-06-11

master
fengyuan_yang 9 months ago
parent
commit
69e6e33d9d
  1. 7
      src/main/java/com/spring/modules/request/service/impl/RequestManageServiceImpl.java
  2. 9
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

7
src/main/java/com/spring/modules/request/service/impl/RequestManageServiceImpl.java

@ -388,7 +388,8 @@ public class RequestManageServiceImpl extends ServiceImpl<RequestManageMapper, P
// } catch (NumberFormatException e) {
// throw new RuntimeException("节点ID不能转为整数: " + inData.getNodeId(), e);
// }
List<ProcessFormVo> previousProcessList = requestManageMapper.getThePreviousProcessInfo(inData.getSite(), inData.getBu(), inData.getDocumentNo(), inData.getStepId());
// 2025-06-11 流程干预获取上一个节点作为提交节点 所以-10
List<ProcessFormVo> previousProcessList = requestManageMapper.getThePreviousProcessInfo(inData.getSite(), inData.getBu(), inData.getDocumentNo(), inData.getStepId() - 10);
if (previousProcessList.isEmpty()) {
throw new RuntimeException("不存在上一个节点的流程流转信息!");
}
@ -438,6 +439,9 @@ public class RequestManageServiceImpl extends ServiceImpl<RequestManageMapper, P
for (ProcessFormVo processFormVo : previousProcessList) {
requestManageMapper.updateIsRemarkToZero(processFormVo.getId());
}
// 2025-06-11 如果是节点更新才走提交 流程干预不走提交流程干预只需要退回到上一节点不需要再提交
if ("update".equals(data.getProcessFlag())) {
ChangeRequestVo vo = new ChangeRequestVo();
vo.setSite(inData.getSite());
vo.setBu(inData.getBu());
@ -463,5 +467,6 @@ public class RequestManageServiceImpl extends ServiceImpl<RequestManageMapper, P
}
}
}
}
}

9
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -2467,14 +2467,11 @@
a.document_source as documentSource,
a.url_file
FROM plm_technical_specification_sheet a
left join view_Project_final_Part b
on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no
left join view_Project_final_Part b on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no
left join plm_project_info c on a.site = c.site and a.project_id = c.project_id
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_customer_part_info pcpi
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no
<if test="cutterNumber != null and cutterNumber != ''">
inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and
(plateNo like #{cutterNumber} or

Loading…
Cancel
Save