| | |
| | | |
| | | @ApiOperation("源码上传") |
| | | @PostMapping("uploadCode") |
| | | public Response uploadCode(@RequestParam MultipartFile file, @RequestParam String softIds) throws IOException { |
| | | return service.uploadCode(file,softIds); |
| | | public Response uploadCode(@RequestParam MultipartFile file, @RequestParam String fileNames) throws IOException { |
| | | return service.uploadCode(file,fileNames); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据软件id实现源码下载") |
| | | @GetMapping("downLoadCode") |
| | | public void downLoadCode(HttpServletRequest req, HttpServletResponse resp, @RequestParam String softId){ |
| | | service.downLoadCode(req,resp,softId); |
| | | public void downLoadCode(HttpServletRequest req, HttpServletResponse resp, @RequestParam String fileName){ |
| | | service.downLoadCode(req,resp,fileName); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据板号和物料编码查询软件记录") |
| | | @GetMapping("getSoftwareByBoardAndMaterialCode") |
| | | public Response getSoftwareByBoardAndMaterialCode(@RequestParam String board,@RequestParam String materialCode){ |
| | | return wareService.getSoftwareByBoardAndMaterialCode(board,materialCode); |
| | | @ApiOperation(value = "查询日期三天内的所有上传软件名称") |
| | | @GetMapping("getFileNameByCreateTime") |
| | | public Response getFileNameByCreateTime(@RequestParam String createTime){ |
| | | return wareService.getFileNameByCreateTime(createTime); |
| | | } |
| | | } |