|
@@ -67,26 +67,26 @@ public class ExepenseInfoListener extends AbstractWorkflowTaskListener {
|
|
statusRecordMapper.insert(statusRecord);
|
|
statusRecordMapper.insert(statusRecord);
|
|
}
|
|
}
|
|
|
|
|
|
- // 先删除任务
|
|
|
|
- noticeService.removeNotice(BaseNotice.NoticeStatus.TASK, "FEIYONGGUANLI-APPROVE",
|
|
|
|
- expenseInfo.getId(), null);
|
|
|
|
- CommonStaff commitUserInfo = staffService.getInfo(AuthSecurityUtils.getCurrentUserId());
|
|
|
|
- String taskContent = "有新的待付款操作需要你处理";
|
|
|
|
- NoticeTaskInfo taskInfo = new NoticeTaskInfo();
|
|
|
|
- taskInfo.setCompId(commitUserInfo.getCompId());
|
|
|
|
- taskInfo.setAcceptType(BaseNotice.AcceptStatus.STAFF);
|
|
|
|
- taskInfo.setBusinessId(expenseInfo.getId());
|
|
|
|
- taskInfo.setBusinessType("FEIYONGGUANLI");
|
|
|
|
- taskInfo.setMessageTitle("费用管理");
|
|
|
|
- taskInfo.setMessageContent(taskContent);
|
|
|
|
- taskInfo.setBusinessCode("FEIYONGGUANLI-APPROVE");
|
|
|
|
- //查询出纳
|
|
|
|
- List<CommonStaff> commonStaffList = staffService.selectList(new EntityWrapper<CommonStaff>()
|
|
|
|
- .eq("major_role_id", "04e3ec4d03c7499fafa690572fdb4c1c")
|
|
|
|
- .eq("delete_flag", "0"));
|
|
|
|
- List<String> staffIds = commonStaffList.stream().map(CommonStaff::getStaffId).collect(Collectors.toList());
|
|
|
|
- noticeTaskService.createNoticeTask(staffIds,
|
|
|
|
- "点击切换任务状态", taskInfo);
|
|
|
|
|
|
+// // 先删除任务
|
|
|
|
+// noticeService.removeNotice(BaseNotice.NoticeStatus.TASK, "FEIYONGGUANLI-APPROVE",
|
|
|
|
+// expenseInfo.getId(), null);
|
|
|
|
+// CommonStaff commitUserInfo = staffService.getInfo(AuthSecurityUtils.getCurrentUserId());
|
|
|
|
+// String taskContent = "有新的待付款操作需要你处理";
|
|
|
|
+// NoticeTaskInfo taskInfo = new NoticeTaskInfo();
|
|
|
|
+// taskInfo.setCompId(commitUserInfo.getCompId());
|
|
|
|
+// taskInfo.setAcceptType(BaseNotice.AcceptStatus.STAFF);
|
|
|
|
+// taskInfo.setBusinessId(expenseInfo.getId());
|
|
|
|
+// taskInfo.setBusinessType("FEIYONGGUANLI");
|
|
|
|
+// taskInfo.setMessageTitle("费用管理");
|
|
|
|
+// taskInfo.setMessageContent(taskContent);
|
|
|
|
+// taskInfo.setBusinessCode("FEIYONGGUANLI-APPROVE");
|
|
|
|
+// //查询出纳
|
|
|
|
+// List<CommonStaff> commonStaffList = staffService.selectList(new EntityWrapper<CommonStaff>()
|
|
|
|
+// .eq("major_role_id", "04e3ec4d03c7499fafa690572fdb4c1c")
|
|
|
|
+// .eq("delete_flag", "0"));
|
|
|
|
+// List<String> staffIds = commonStaffList.stream().map(CommonStaff::getStaffId).collect(Collectors.toList());
|
|
|
|
+// noticeTaskService.createNoticeTask(staffIds,
|
|
|
|
+// "点击切换任务状态", taskInfo);
|
|
} else {
|
|
} else {
|
|
expenseInfo.setApproveStatus(status);
|
|
expenseInfo.setApproveStatus(status);
|
|
|
|
|