|
|
@@ -458,17 +458,23 @@ public class TodoCenterManage { |
|
|
|
* @param param 参数 |
|
|
|
*/ |
|
|
|
private void doSealPass(Task task, Long userId, ReqProcessHandlerDTO param) { |
|
|
|
String processInstanceId = task.getProcessInstanceId(); |
|
|
|
// 获取当前申报项目 |
|
|
|
Project declaredProject = projectService |
|
|
|
.getOne(Wrappers.lambdaQuery(Project.class).eq(Project::getInstCode, task.getProcessInstanceId())); |
|
|
|
String projectName = declaredProject.getProjectName(); |
|
|
|
|
|
|
|
Map<String, Object> var = new HashMap<>(16); |
|
|
|
var.put("approve_" + task.getId(), param.getAction()); |
|
|
|
|
|
|
|
// 保存审核意见 |
|
|
|
if (hasComment(param.getAuditInfo())) { |
|
|
|
// 执行自定义的保存评论的功能 |
|
|
|
managementService.executeCommand(new SaveCommentCmd(param.getTaskId(), param.getInstanceId(), |
|
|
|
String.valueOf(userId), JSONObject.toJSONString(param.getAuditInfo()))); |
|
|
|
} |
|
|
|
// TODO 判断项目申报单位级别,区县单位申报有上级主管单位意见栏,市级单位没有 |
|
|
|
|
|
|
|
// TODO 市级单位:为大数据局;区县单位:为大数据中心(根据附件区分?) |
|
|
|
// 获取当前申报项目 |
|
|
|
Project declaredProject = projectService |
|
|
|
.getOne(Wrappers.lambdaQuery(Project.class).eq(Project::getInstCode, task.getProcessInstanceId())); |
|
|
|
// 更新项目状态到下一个状态 |
|
|
|
updatePassProjectStatus(userId, declaredProject); |
|
|
|
taskService.complete(param.getTaskId(), var); |
|
|
|
} |
|
|
|
|
|
|
@@ -554,7 +560,7 @@ public class TodoCenterManage { |
|
|
|
// 获取浙政钉用户ID |
|
|
|
UserInfo auditUserInfo = userInfoService.getById(Long.valueOf(nextUserId)); |
|
|
|
WorkNoticeInfo sendWorkNoticeInfo = getSendWorkNoticeInfo(auditUserInfo); |
|
|
|
String msg = String.format(PASS_MSG_TEMPLATE, null, projectName); |
|
|
|
String msg = String.format(PASS_MSG_TEMPLATE, sendWorkNoticeInfo.getOrganizationName(), projectName); |
|
|
|
zwddClient.sendWorkNotice(sendWorkNoticeInfo.getReceiverUserId(),sendWorkNoticeInfo.getBizMsgId(),msg); |
|
|
|
} else { |
|
|
|
// 若没有,向发起人发送浙政钉工作通知:【项目名称】已通过【流程名称】,请及时开始下一步操作。 |
|
|
@@ -579,7 +585,7 @@ public class TodoCenterManage { |
|
|
|
* @author CMM |
|
|
|
* @since 2023/02/15 14:04 |
|
|
|
*/ |
|
|
|
private WorkNoticeInfo getSendWorkNoticeInfo(UserInfo auditUserInfo) { |
|
|
|
public WorkNoticeInfo getSendWorkNoticeInfo(UserInfo auditUserInfo) { |
|
|
|
WorkNoticeInfo workNoticeInfo = new WorkNoticeInfo(); |
|
|
|
Long accountId = auditUserInfo.getAccountId(); |
|
|
|
if (Objects.isNull(accountId)){ |
|
|
|