| | |
| | | //新建一个machineaceptedfile对象,存储接收后的数据 |
| | | MachineAcceptedFile machineAcceptedFile = new MachineAcceptedFile(); |
| | | machineAcceptedFile.setMachineFileId(machineFileId); |
| | | machineAcceptedFile.setName(machineFile.getName()); |
| | | String fullPath = machineFileService.getFilePath(machineFile); |
| | | try(InputStream inputStream = Files.newInputStream(Paths.get(fullPath));){ |
| | | BladeFile bfile = ossTemplate.putFile(machineFile.getName(),inputStream); |
| | |
| | | */ |
| | | |
| | | public IPage<MachineAcceptedFileVO> handlePageQuery(MachineAcceptedFileHandleQueryVO query) { |
| | | IPage<MachineAcceptedFileVO> page = this.getBaseMapper().handlePageQuery(Condition.getPage(query),query); |
| | | return page; |
| | | return this.getBaseMapper().handlePageQuery(Condition.getPage(query),query); |
| | | } |
| | | |
| | | |