Browse Source

修改保存文档等

master
赵鹏 1 month ago
parent
commit
ad928b2111
  1. 3
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/jobinfo/JobInfoServiceImpl.java

3
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); JobInfoDO jobInfo = BeanUtils.toBean(createReqVO, JobInfoDO.class);
jobInfoMapper.insert(jobInfo); jobInfoMapper.insert(jobInfo);
htmlToPdf(jobInfo.getId());
// 返回 // 返回
return jobInfo.getId(); return jobInfo.getId();
} }
@ -68,6 +69,8 @@ public class JobInfoServiceImpl implements JobInfoService {
validateJobInfoExists(updateReqVO.getId()); validateJobInfoExists(updateReqVO.getId());
// 更新 // 更新
JobInfoDO updateObj = BeanUtils.toBean(updateReqVO, JobInfoDO.class); JobInfoDO updateObj = BeanUtils.toBean(updateReqVO, JobInfoDO.class);
htmlToPdf(updateObj.getId());
jobInfoMapper.updateById(updateObj); jobInfoMapper.updateById(updateObj);
} }

Loading…
Cancel
Save