| | |
| | | * @param uploaderDTO 上传人信息 |
| | | * @return |
| | | */ |
| | | public FileInfo webPploadFile(MultipartFile file, String ownerId, String ownerType, int fileCount, UploaderDTO uploaderDTO) { |
| | | public FileInfo webUploadFile(MultipartFile file, String mainId, String ownerId, String ownerType, int fileCount, UploaderDTO uploaderDTO) { |
| | | try { |
| | | String fileId = utilsClient.getNewTimeId(); |
| | | // 创建附件信息 |
| | |
| | | ftpUtils.upload(fileInfo.getPath(), fileInfo.getFileName(), file.getInputStream()); |
| | | // 保存附件信息 |
| | | fileInfo.setName(FileOwnerTypeBaseEnum.getDes(ownerType) + BaseConsts.UNDER + fileCount); |
| | | fileInfo.setMainId(mainId); |
| | | fileInfo.setOwnerId(ownerId); |
| | | fileInfo.setOwnerCat(FileOwnerTypeBaseEnum.getCat(ownerType)); |
| | | fileInfo.setOwnerCatName(FileOwnerTypeBaseEnum.getDes(fileInfo.getOwnerCat())); |
| | |
| | | * @param uploaderDTO 上传人信息 |
| | | * @return |
| | | */ |
| | | public FileInfo wechatPploadFile(MultipartFile file, String ownerId, String ownerType, int fileCount, UploaderDTO uploaderDTO) { |
| | | public FileInfo wechatUploadFile(MultipartFile file, String mainId, String ownerId, String ownerType, int fileCount, UploaderDTO uploaderDTO) { |
| | | try { |
| | | String fileId = utilsClient.getNewTimeId(); |
| | | // 创建附件信息 |
| | |
| | | ftpUtils.upload(fileInfo.getPath(), fileInfo.getFileName(), file.getInputStream()); |
| | | // 保存附件信息 |
| | | fileInfo.setName(FileOwnerTypeBaseEnum.getDes(ownerType) + BaseConsts.UNDER + fileCount); |
| | | fileInfo.setMainId(mainId); |
| | | fileInfo.setOwnerId(ownerId); |
| | | fileInfo.setOwnerCat(FileOwnerTypeBaseEnum.getCat(ownerType)); |
| | | fileInfo.setOwnerCatName(FileOwnerTypeBaseEnum.getDes(fileInfo.getOwnerCat())); |