| | |
| | | return new Response().setII(1,"申请完成"); |
| | | } |
| | | |
| | | public Response upload(MultipartFile file, int id) throws IOException { |
| | | public Response upload(MultipartFile file, int id, String description) throws IOException { |
| | | User user = UserUtil.getUser(); |
| | | String fileName = file.getOriginalFilename(); |
| | | //根据id获取软件包信息 |
| | |
| | | software.setUploadUserName(user.getName()); |
| | | software.setFileUrl(softwareHttpUrl + File.separator +fileName); |
| | | software.setFileName(fileName); |
| | | software.setDescription(description); |
| | | |
| | | mapper.updateById(software); |
| | | |