| | |
| | | private String secretFolder; //涉密网传输nc文件夹 |
| | | @Autowired |
| | | private FileFerryService ferryService; |
| | | @Autowired |
| | | private IDocClassificationService iDocClassificationService; |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Result applyAssignFile(AssignFileStream stream) { |
| | | public Result<?> applyAssignFile(AssignFileStream stream) { |
| | | synchronized (this){ |
| | | //判断设备特殊字符 |
| | | String specialChar = getDeviceSpecialChar(stream.getDeviceId(),stream.getFileId()); |
| | |
| | | //抛出特殊字符异常 |
| | | return Result.error("文件名称存在设备特殊字符"); |
| | | } |
| | | //查询文档的状态,批准状态才可以指派 |
| | | DocInfo docInfo=getDocInfo(stream); |
| | | DocClassification docClassification=iDocClassificationService.getById(docInfo.getClassificationId()); |
| | | if (docInfo.getDocDispatchStatus()!=null&&docInfo.getDocDispatchStatus()!=3&&docClassification.getClassificationCode().equals("nc")){ |
| | | return Result.error("该文件状态不允许指派,请先完成审签流程"); |
| | | } |
| | | if(flowableEnable) { |
| | | return applyAssignFileActive(stream); |
| | | }else { |