| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Isolation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | //获取不合格处理记录 |
| | | UnqualifiedHandlerVO vo = baseMapper.findById(pushOADto.getHandlerId()); |
| | | |
| | | if (vo.getRequestId() != null) { |
| | | throw new ErrorException("该不合格处理已提交过OA"); |
| | | } |
| | | System.out.println(vo); |
| | | // if (vo.getRequestId() != null) { |
| | | // throw new ErrorException("该不合格处理已提交过OA"); |
| | | // } |
| | | |
| | | //提交oa相关字段赋值 |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED) |
| | | public boolean updateUnqualifiedHandler(UnqualifiedHandlerDto unqualifiedHandlerDto) { |
| | | // 删除附件, 重新添加 |
| | | insUnqualifiedHandlerFileService.remove(Wrappers.<InsUnqualifiedHandlerFile>lambdaQuery() |
| | |
| | | } |
| | | insUnqualifiedHandlerFileService.updateBatchById(unqualifiedHandlerDto.getUnqualifiedHandlerFiles()); |
| | | } |
| | | |
| | | return this.updateById(unqualifiedHandlerDto); |
| | | boolean isUpdated = this.updateById(unqualifiedHandlerDto); |
| | | if(isUpdated){ |
| | | //推送OA |
| | | PushOADto pushOADto = new PushOADto(); |
| | | pushOADto.setHandlerId(unqualifiedHandlerDto.getId()); |
| | | pushOA(pushOADto); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |