提交 3eefcd32 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 661156a4
......@@ -639,8 +639,34 @@ public class SelectedSubjectServiceImpl extends BaseServiceImpl<SelectedSubject,
// 关联合同之后推送新书数据到三审管理
@Override
public Boolean saveThriceAudit(Copyright copyright) {
SelectedSubject subject = mapper.selectByPrimaryKey(copyright.getObjectId());
saveThriceAuditDetails(subject,null,null,copyright);
SelectedSubject selectedSubject = mapper.selectByPrimaryKey(copyright.getObjectId());
// 正常流程
if (SelectedProcessEnum.NORMAL.getCode().equals(selectedSubject.getSelectedProcess())){
saveThriceAuditDetails(selectedSubject,null,null,copyright);
}
// 三审和发排同时进行
if (SelectedProcessEnum.AUDIT_FAPAI.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推发排
pushDesign(selectedSubject);
}
// 三审、发排和封面设计同时进行
if (SelectedProcessEnum.AUDIT_FAPAI_COVER.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推发排
pushDesign(selectedSubject);
// 推封面设计
pushCover(selectedSubject);
}
// 三审和封面设计同时进行
if (SelectedProcessEnum.AUDIT_COVER.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推封面设计
pushCover(selectedSubject);
}
return true;
}
......@@ -724,29 +750,6 @@ public class SelectedSubjectServiceImpl extends BaseServiceImpl<SelectedSubject,
// 推封面设计
pushCover(selectedSubject);
}
// 三审和发排同时进行
if (SelectedProcessEnum.AUDIT_FAPAI.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推发排
pushDesign(selectedSubject);
}
// 三审、发排和封面设计同时进行
if (SelectedProcessEnum.AUDIT_FAPAI_COVER.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推发排
pushDesign(selectedSubject);
// 推封面设计
pushCover(selectedSubject);
}
// 三审和封面设计同时进行
if (SelectedProcessEnum.AUDIT_COVER.getCode().equals(selectedSubject.getSelectedProcess())){
// 推三审
saveThriceAuditDetails(selectedSubject,null,null,null);
// 推封面设计
pushCover(selectedSubject);
}
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论