mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
feat(flow): 添加打印模板导入逻辑
- 仅在导入流程时携带打印模板,编辑或复制时保留原模板 (cherry picked from commit ebb2cf463da55efa9ac64bc011ed7ffc8606578a)
This commit is contained in:
1 parent
2053cc5766
commit
93c52e41dc
1 file changed
+4
+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);
|
||||
|
||||
// 删除原有发起范围
|
||||
|
||||
Reference in new issue
Block a user