| | |
| | | return Result.success(standardMethodService.upStandardMethod(standardMethod)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导入标准明细") |
| | | @PostMapping("/importStandardDetails") |
| | | public Result<?> importStandardDetails(@RequestPart("file") MultipartFile file) throws IOException { |
| | | standardMethodService.inputExcel(file); |
| | | return Result.success(); |
| | | @ApiOperation(value = "获取行业选项") |
| | | @GetMapping("/selectIndustryOptions") |
| | | public Result selectIndustryOptions() { |
| | | return Result.success(standardMethodService.selectIndustryOptions()); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询标准附件") |
| | | @GetMapping("/selectAttachments") |
| | | public Result selectAttachments(Integer standardMethodId) { |
| | | return Result.success(standardMethodService.selectAttachments(standardMethodId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "上传标准附件") |
| | | @PostMapping("/uploadAttachment") |
| | | public Result uploadAttachment(@RequestParam("standardMethodId") Integer standardMethodId, |
| | | @RequestParam("file") MultipartFile file) { |
| | | return Result.success(standardMethodService.uploadAttachment(standardMethodId, file)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除标准附件") |
| | | @DeleteMapping("/deleteAttachment") |
| | | public Result deleteAttachment(Long id) { |
| | | return Result.success(standardMethodService.deleteAttachment(id)); |
| | | } |
| | | |
| | | } |