From 2825e5d603737bc596c0aca6c39929949ac240c7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 22 四月 2024 09:06:26 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceRelativesconfirmationController.java | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceRelativesconfirmationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceRelativesconfirmationController.java index 29a9ded..38b065a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceRelativesconfirmationController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceRelativesconfirmationController.java @@ -116,10 +116,11 @@ @ApiOperation("鏂板浜插睘纭") //@PreAuthorize("@ss.hasPermi('project:relativesconfirmation:add')") @Log(title = "鎹愮尞浜插睘纭", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") @RepeatSubmit public AjaxResult add(@RequestBody ServiceRelativesconfirmation serviceRelativesconfirmation) { - return toAjax(serviceRelativesconfirmationService.save(serviceRelativesconfirmation)); + boolean save = serviceRelativesconfirmationService.save(serviceRelativesconfirmation); + return AjaxResult.success(serviceRelativesconfirmation); } /** @@ -188,11 +189,6 @@ try { out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outFile), "utf-8")); - - } catch (FileNotFoundException e1) { - e1.printStackTrace(); - } - try { t.process(dataMap, out); } catch (TemplateException e) { e.printStackTrace(); -- Gitblit v1.9.3