feat(REQ-3300) - 兼容用印进展中的单个单位申请用印

This commit is contained in:
wangli 2025-03-04 11:43:30 +08:00
parent 4b6e5a4945
commit 3e760facdd

View File

@ -710,6 +710,11 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
VisaChangeApproveCreateReq createReq = visaHelper.buildVisaChangeApproveCreateReqByVisaId(req.getVisaId());
AssertUtil.notNull(createReq, "未找到变洽签单据");
if (Objects.isNull(req.getPdfFile())) {
List<ChangeRecordRelation> pdfs = findByVisaAndVarName(visa.getId(), PRINT_PDF_FILE.name());
AssertUtil.notEmpty(pdfs, "数据异常,未找到变洽签 PDF 文件");
req.setPdfFile(JSON.parseObject(pdfs.get(0).getContent(), UploadFieldDTO.class));
}
create.setStartFormVariables(visaHelper.buildStartFormVariables(createReq));
OrganizationalUnitVO unitInfo = organizationalUnitGateway.getUnitInfo(model.getOuId());
Map<String, Object> variables = Maps.of(