liding
2 天以前 bd46f203b0d30a3d33b7c51ae9a528e4807477e1
basic-server/src/main/java/com/ruoyi/basic/controller/StandardMethodController.java
@@ -21,8 +21,8 @@
    private StandardMethodService standardMethodService;
    @ApiOperation(value = "获取标准方法列表")
    @PostMapping("/selectStandardMethodList")
    public Result selectStandardMethodList(Page page,StandardMethod standardMethod) throws Exception {
    @GetMapping("/selectStandardMethodList")
    public Result selectStandardMethodList(Page page,StandardMethod standardMethod)  {
        return Result.success(standardMethodService.selectStandardMethodList(page, standardMethod));
    }
@@ -39,7 +39,7 @@
    }
    @ApiOperation(value = "删除标准方法")
    @PostMapping("/delStandardMethod")
    @DeleteMapping("/delStandardMethod")
    public Result<?> delStandardMethod(Integer id) {
        return Result.success(standardMethodService.delStandardMethod(id));
    }
@@ -50,10 +50,29 @@
        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));
    }
}