feat(flow): 添加打印模板导入逻辑

- 仅在导入流程时携带打印模板,编辑或复制时保留原模板

(cherry picked from commit ebb2cf463da55efa9ac64bc011ed7ffc8606578a)
This commit is contained in:
PIGCLOUD committed 2026-11-03 14:56:21 +08:00
1 parent 2053cc5766
commit 93c52e41dc
1 file changed
+4
@@ -341,6 +341,10 @@ public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> impl
p.setUniqueId(deployment.getId());
p.setAdminList(process.getAdminList());
p.setRangeShow(stringBuilder.toString());
// 仅导入流程会携带打印模板;编辑/复制不传时保留原模板
if (Objects.nonNull(process.getPrintTemplate())) {
p.setPrintTemplate(process.getPrintTemplate());
}
this.saveOrUpdate(p);
// 删除原有发起范围