| | |
| | | |
| | | @ApiOperation("更新软件版本对应的适用机型") |
| | | @PutMapping("applyModel") |
| | | public Response updateApplyModel(@RequestBody List<Software> softwareList){ |
| | | return service.updateApplyModel(softwareList); |
| | | public Response updateApplyModel(@RequestParam MultipartFile multipartFile,@RequestParam String softwareStr){ |
| | | List<Software> softwareList = ActionUtil.getGson().fromJson(softwareStr,new TypeToken<List<Software>>(){}.getType()); |
| | | return service.updateApplyModel(multipartFile,softwareList); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询软件列表的信息") |
| | |
| | | } |
| | | |
| | | @Transactional |
| | | public Response updateApplyModel(List<Software> softwareList) { |
| | | public Response updateApplyModel(MultipartFile multipartFile, List<Software> softwareList) { |
| | | QueryWrapper<Software> query = Wrappers.query(); |
| | | query.eq("file_name",softwareList.get(0).getFileName()).last(" limit 1"); |
| | | Software softwareDB = mapper.selectOne(query); |