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); }