From ad928b2111dff34d6c398ea5229cdf7459ad21d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 3 Mar 2025 16:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=AD=98=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/system/service/jobinfo/JobInfoServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/jobinfo/JobInfoServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/jobinfo/JobInfoServiceImpl.java index 9ae3f1a..8aa1164 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/jobinfo/JobInfoServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/jobinfo/JobInfoServiceImpl.java @@ -58,6 +58,7 @@ public class JobInfoServiceImpl implements JobInfoService { // 插入 JobInfoDO jobInfo = BeanUtils.toBean(createReqVO, JobInfoDO.class); jobInfoMapper.insert(jobInfo); + htmlToPdf(jobInfo.getId()); // 返回 return jobInfo.getId(); } @@ -68,6 +69,8 @@ public class JobInfoServiceImpl implements JobInfoService { validateJobInfoExists(updateReqVO.getId()); // 更新 JobInfoDO updateObj = BeanUtils.toBean(updateReqVO, JobInfoDO.class); + htmlToPdf(updateObj.getId()); + jobInfoMapper.updateById(updateObj); }