| | |
| | | private final BladeRedis bladeRedis; |
| | | private final FlowCommonService flowCommonService; |
| | | private final DncBackFileService dncBackFileService; |
| | | private final ProgramFlowStatusQueryService programFlowStatusQueryService; |
| | | private String getFileKey(){ |
| | | return "dncimpfile-"+ AuthUtil.getUserId(); |
| | | } |
| | |
| | | progData.setId(programPackageNode.getId()); |
| | | progData.setProgramNo(programPackageNode.getProgramNo()); |
| | | |
| | | List<String> fileEtriyNames = fileEntryNameList.stream().filter(n -> n.startsWith(packageName)).toList(); |
| | | List<String> fileEntryNames = fileEntryNameList.stream().filter(n -> n.startsWith(packageName)).toList(); |
| | | List<DncSendBackFile> programFiles = new ArrayList<>(); |
| | | fileEtriyNames.forEach( filePath ->{ |
| | | fileEntryNames.forEach( filePath ->{ |
| | | DncSendBackFile backFile = new DncSendBackFile(); |
| | | backFile.setEntryName(filePath); |
| | | backFile.setName(StringUtils.removeStart(filePath,entryName)); |
| | |
| | | //根据节点信息查询流程 |
| | | boolean active = flowCommonService.isProcessInstanceActive(packageNode.getProcessInstanceId()); |
| | | if(active){ |
| | | throw new ServiceException(programPackageName+"正在审批中,请勿重复入库。"); |
| | | throw new ServiceException(programPackageName+"正在审批中,请勿等待审批完成。"); |
| | | } |
| | | |
| | | //验证都过了,保存dncbackFile |