修改指标,登记

This commit is contained in:
zhuyy 2023-06-16 15:11:52 +08:00
parent e956b22dcb
commit 1a7a1ce696
1 changed files with 17 additions and 7 deletions

View File

@ -142,6 +142,7 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
audit.setAuditOrder(ArgsConst.WAITING); audit.setAuditOrder(ArgsConst.WAITING);
audit.setApprover(user2.getId()); audit.setApprover(user2.getId());
organization.setLastId(user2.getUserName()); organization.setLastId(user2.getUserName());
if (ArgsConst.PERSONNEL_INDICATORS.equals(type)) {
WorkFlowNotice workFlowNotice = new WorkFlowNotice(); WorkFlowNotice workFlowNotice = new WorkFlowNotice();
workFlowNotice.setStatus(Boolean.FALSE); workFlowNotice.setStatus(Boolean.FALSE);
workFlowNotice.setFlowType(ArgsConst.PERSONNEL_INDICATORS); workFlowNotice.setFlowType(ArgsConst.PERSONNEL_INDICATORS);
@ -149,6 +150,15 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
workFlowNotice.setTitle(user.getUserName() + "的指标申报待你审批"); workFlowNotice.setTitle(user.getUserName() + "的指标申报待你审批");
workFlowNotice.setFlowId(organization.getId()); workFlowNotice.setFlowId(organization.getId());
workFlowNoticeService.save(workFlowNotice); workFlowNoticeService.save(workFlowNotice);
} else {
WorkFlowNotice workFlowNotice = new WorkFlowNotice();
workFlowNotice.setStatus(Boolean.FALSE);
workFlowNotice.setFlowType(ArgsConst.PERSONNEL_INDICATORS);
workFlowNotice.setUserId(user2.getId());
workFlowNotice.setTitle(user.getUserName() + "的招聘登记待你审批");
workFlowNotice.setFlowId(organization.getId());
workFlowNoticeService.save(workFlowNotice);
}
} }
auditMapper.insert(audit); auditMapper.insert(audit);
} }