| | |
| | | return R.ok(ReturnMsgConstants.SAVE_SUCCESS); |
| | | } |
| | | |
| | | private Boolean saveEventImageList(List<ComEventRequestImageVO> images, Long id) { |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean saveEventImageList(List<ComEventRequestImageVO> images, Long id) { |
| | | List<ComEventResource> comEventResourceList = new ArrayList<>(); |
| | | if (!StringUtils.isEmpty(images)) { |
| | | List<ComEventRequestImageVO> imagesList = images; |
| | |
| | | } |
| | | } |
| | | } |
| | | baseMapper.updateById(comEvent); |
| | | return R.ok(); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } |
| | | |
| | | @Override |
| | |
| | | comEvent.setUserEventStatus(4); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.CANCEL.getCode()); |
| | | comEvent.setRevokeDes("用户手动取消"); |
| | | baseMapper.updateById(comEvent); |
| | | return R.ok(); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } else { |
| | | return R.fail("当前申请已经受理,不能取消!"); |
| | | } |
| | |
| | | comEvent.setSpecialistAcceptTime(new Date()); |
| | | comEvent.setSpecialistName(specter.getName()); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.ACCEPT.getCode()); |
| | | baseMapper.updateById(comEvent); |
| | | return R.ok(); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } |
| | | |
| | | @Override |
| | |
| | | comEvent.setSpecialistAcceptTime(new Date()); |
| | | comEvent.setSpecialistName(specter.getName()); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.ACCEPT.getCode()); |
| | | baseMapper.updateById(comEvent); |
| | | return R.ok(); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R archiveRequest(ComEventArchiveVO comEventArchiveVO, LoginUserInfoVO sysUser) { |
| | | ComEvent comEvent = baseMapper.selectById(comEventArchiveVO.getId()); |
| | | comEvent.setEventProcessStatus(6); |
| | | if (comEvent.getEventSucceed() == 2) { |
| | | comEvent.setEventProcessStatus(6); |
| | | } else { |
| | | comEvent.setEventProcessStatus(5); |
| | | } |
| | | comEvent.setResult(comEventArchiveVO.getResult()); |
| | | baseMapper.updateById(comEvent); |
| | | ComEventTransferRecord comEventTransferRecord = new ComEventTransferRecord(); |
| | |
| | | comEventTransferRecord.setSpecialistName(comEvent.getSpecialistName()); |
| | | comEventTransferRecord.setEventResult(comEvent.getEventSucceed()); |
| | | comEventTransferRecord.setEventStatus(comEvent.getEventProcessStatus()); |
| | | comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord); |
| | | return R.ok(); |
| | | return comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord); |
| | | } |
| | | |
| | | private Boolean checkExist(String sn, Long id) { |