| | |
| | | |
| | | @ApiOperation("软件上传") |
| | | @PostMapping("upload") |
| | | public Response upload(@RequestParam MultipartFile file1,@RequestParam MultipartFile file2,@RequestParam String softwareStr) throws IOException { |
| | | public Response upload(@RequestParam MultipartFile file1,@RequestParam MultipartFile file2,@RequestParam String fontUpdateTime,@RequestParam String softwareStr) throws IOException { |
| | | List<Software> softwareList = ActionUtil.getGson().fromJson(softwareStr,new TypeToken<List<Software>>(){}.getType()); |
| | | return service.upload(file1,file2,softwareList); |
| | | return service.upload(file1,file2,fontUpdateTime,softwareList); |
| | | } |
| | | |
| | | @ApiOperation("更新软件版本对应的适用机型") |
| | | @PutMapping("applyModel") |
| | | public Response updateApplyModel(@RequestBody List<Software> softwareList){ |
| | | return service.updateApplyModel(softwareList); |
| | | public Response updateApplyModel(@RequestParam MultipartFile multipartFile,@RequestParam String softwareStr) throws IOException { |
| | | List<Software> softwareList = ActionUtil.getGson().fromJson(softwareStr,new TypeToken<List<Software>>(){}.getType()); |
| | | return service.updateApplyModel(multipartFile,softwareList); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询软件列表的信息") |
| | |
| | | @RequestParam(required = false) String applyMaterialCode, |
| | | @RequestParam(required = false) String applyModel, |
| | | @RequestParam(required = false) String owner, |
| | | @RequestParam(required = false) String boardNumber, |
| | | @RequestParam int pageCurr,@RequestParam int pageSize ){ |
| | | return service.getAllSoftware(fileName,applyMaterialCode,applyModel,owner,pageCurr,pageSize); |
| | | return service.getAllSoftware(fileName,applyMaterialCode,applyModel,owner,boardNumber,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据subcode查询软件列表") |
| | |
| | | service.downLoadSoftware(req,resp,id); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据软件id修改软件锁定状态") |
| | | @GetMapping("updateSoftwareLock") |
| | | public Response updateSoftwareLock(@RequestParam String fileUrl,@RequestParam int lockFlag,@RequestParam String localReason){ |
| | | return service.updateSoftwareLock(fileUrl,lockFlag,localReason); |
| | | } |
| | | } |