|
|
@@ -151,7 +151,9 @@ public class HandlerManage { |
|
|
|
String passMsg2 = String.format(PASS_MSG_TEMPLATE2, declaredProject.getProjectName(), instance.getProcessDefinitionName()); |
|
|
|
passWorkNoticeInfo2.setMsg(passMsg2); |
|
|
|
// 放入系统通知表中,保存记录 |
|
|
|
assemblyAuditNotify(userId, declaredProject, passMsg2); |
|
|
|
Notify notify = assemblyAuditNotify(userId, declaredProject, passMsg2); |
|
|
|
notify.setType(MsgTypeEnum.PROJECT_REVIEW_PASS.name()); |
|
|
|
notifyService.save(notify); |
|
|
|
// 放入工作通知暂存表中,通过扫表异步发送 |
|
|
|
workNoticeStagingService.addByWorkNotice(passWorkNoticeInfo2, MsgTypeEnum.PROJECT_REVIEW); |
|
|
|
} else { |
|
|
@@ -165,7 +167,9 @@ public class HandlerManage { |
|
|
|
String msg = String.format(PASS_MSG_TEMPLATE, sendWorkNoticeInfo.getOrganizationName(), declaredProject.getProjectName()); |
|
|
|
sendWorkNoticeInfo.setMsg(msg); |
|
|
|
// 放入系统通知表中,保存记录 |
|
|
|
assemblyAuditNotify(userId, declaredProject, msg); |
|
|
|
Notify notify = assemblyAuditNotify(userId, declaredProject, msg); |
|
|
|
notify.setType(MsgTypeEnum.PROJECT_REVIEW.name()); |
|
|
|
notifyService.save(notify); |
|
|
|
// 放入工作通知暂存表中,通过扫表异步发送 |
|
|
|
workNoticeStagingService.addByWorkNotice(sendWorkNoticeInfo, MsgTypeEnum.PROJECT_REVIEW); |
|
|
|
} |
|
|
@@ -186,7 +190,9 @@ public class HandlerManage { |
|
|
|
instance.getProcessDefinitionName()); |
|
|
|
rejectWorkNoticeInfo.setMsg(rejectMsg); |
|
|
|
// 放入系统通知表中,保存记录 |
|
|
|
assemblyAuditNotify(userId, declaredProject, rejectMsg); |
|
|
|
Notify notify = assemblyAuditNotify(userId, declaredProject, rejectMsg); |
|
|
|
notify.setType(MsgTypeEnum.PROJECT_REVIEW_REJECT.name()); |
|
|
|
notifyService.save(notify); |
|
|
|
// 放入工作通知暂存表中,通过扫表异步发送 |
|
|
|
workNoticeStagingService.addByWorkNotice(rejectWorkNoticeInfo, MsgTypeEnum.PROJECT_REVIEW); |
|
|
|
} |
|
|
@@ -268,7 +274,9 @@ public class HandlerManage { |
|
|
|
instance.getProcessDefinitionName()); |
|
|
|
backWorkNoticeInfo.setMsg(backMsg); |
|
|
|
// 放入系统通知表中,保存记录 |
|
|
|
assemblyAuditNotify(userId, declaredProject, backMsg); |
|
|
|
Notify notify = assemblyAuditNotify(userId, declaredProject, backMsg); |
|
|
|
notify.setType(MsgTypeEnum.PROJECT_REVIEW_BACK.name()); |
|
|
|
notifyService.save(notify); |
|
|
|
// 放入工作通知暂存表中,通过扫表异步发送 |
|
|
|
workNoticeStagingService.addByWorkNotice(backWorkNoticeInfo, MsgTypeEnum.PROJECT_REVIEW); |
|
|
|
} |
|
|
@@ -342,16 +350,15 @@ public class HandlerManage { |
|
|
|
* @param project |
|
|
|
* @param msg |
|
|
|
*/ |
|
|
|
private void assemblyAuditNotify(Long userId, Project project, String msg) { |
|
|
|
private Notify assemblyAuditNotify(Long userId, Project project, String msg) { |
|
|
|
Notify notify = new Notify(); |
|
|
|
notify.setTitle(AUDIT_WORK_TITLE); |
|
|
|
notify.setUserId(userId); |
|
|
|
notify.setType(MsgTypeEnum.PROJECT_REVIEW.name()); |
|
|
|
notify.setInstanceId(project.getInstCode()); |
|
|
|
notify.setContent(msg); |
|
|
|
notify.setReaded(Boolean.FALSE); |
|
|
|
notify.setCreateTime(LocalDateTime.now()); |
|
|
|
notifyService.save(notify); |
|
|
|
return notify; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|