| | |
| | | */ |
| | | @Override |
| | | public TestLeaveVo queryById(Long id) { |
| | | TestLeaveVo testLeaveVo = baseMapper.selectVoById(id); |
| | | testLeaveVo.setProcessInstanceId(workflowService.getInstanceIdByBusinessKey(String.valueOf(id))); |
| | | return testLeaveVo; |
| | | return baseMapper.selectVoById(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | log.info("当前任务执行了{}", processEvent.toString()); |
| | | TestLeave testLeave = baseMapper.selectById(Long.valueOf(processEvent.getBusinessKey())); |
| | | testLeave.setStatus(processEvent.getStatus()); |
| | | if (processEvent.isSubmit()) { |
| | | testLeave.setStatus(BusinessStatusEnum.WAITING.getStatus()); |
| | | } |
| | | baseMapper.updateById(testLeave); |
| | | } |
| | | |