yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pd/project/MesPdProjectServiceImpl.java
@@ -217,6 +217,9 @@ } // 2. 校验该项目下所有资料审核记录均已审核(不存在待审核的记录) List<MesPdDocumentDO> documents = documentService.getDocumentListByProjectId(id); if (CollUtil.isEmpty(documents)) { throw exception(PD_PROJECT_NO_DOCUMENT); } List<Long> documentIds = documents.stream().map(MesPdDocumentDO::getId).toList(); if (documentAuditMapper.existsPendingAuditByDocumentIds(documentIds)) { throw exception(PD_PROJECT_AUDIT_NOT_FINISHED);