From 78b0e909aa6ece787091e5d81450c8927ef2599e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 15 十二月 2023 17:03:12 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java | 34 ++++++++++++++--------------------
1 files changed, 14 insertions(+), 20 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java
index 5ce0478..160d7e3 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaExtemplateController.java
@@ -1,7 +1,8 @@
-package com.smartor.controller;
+package com.ruoyi.web.controller.smartor;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,14 +24,13 @@
/**
* 鎵╁睍璇濇湳妯℃澘搴揅ontroller
- *
+ *
* @author smartor
* @date 2023-03-22
*/
@RestController
@RequestMapping("/smartor/ivrextemplate")
-public class IvrLibaExtemplateController extends BaseController
-{
+public class IvrLibaExtemplateController extends BaseController {
@Autowired
private IIvrLibaExtemplateService ivrLibaExtemplateService;
@@ -38,9 +38,8 @@
* 鏌ヨ鎵╁睍璇濇湳妯℃澘搴撳垪琛�
*/
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:list')")
- @GetMapping("/list")
- public TableDataInfo list(IvrLibaExtemplate ivrLibaExtemplate)
- {
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
startPage();
List<IvrLibaExtemplate> list = ivrLibaExtemplateService.selectIvrLibaExtemplateList(ivrLibaExtemplate);
return getDataTable(list);
@@ -52,8 +51,7 @@
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:export')")
@Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrLibaExtemplate ivrLibaExtemplate)
- {
+ public void export(HttpServletResponse response, IvrLibaExtemplate ivrLibaExtemplate) {
List<IvrLibaExtemplate> list = ivrLibaExtemplateService.selectIvrLibaExtemplateList(ivrLibaExtemplate);
ExcelUtil<IvrLibaExtemplate> util = new ExcelUtil<IvrLibaExtemplate>(IvrLibaExtemplate.class);
util.exportExcel(response, list, "鎵╁睍璇濇湳妯℃澘搴撴暟鎹�");
@@ -64,8 +62,7 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:query')")
@GetMapping(value = "/{subModuleID}")
- public AjaxResult getInfo(@PathVariable("subModuleID") String subModuleID)
- {
+ public AjaxResult getInfo(@PathVariable("subModuleID") String subModuleID) {
return success(ivrLibaExtemplateService.selectIvrLibaExtemplateBySubModuleID(subModuleID));
}
@@ -74,9 +71,8 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:add')")
@Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.INSERT)
- @PostMapping
- public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate)
- {
+ @PostMapping("/add")
+ public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
return toAjax(ivrLibaExtemplateService.insertIvrLibaExtemplate(ivrLibaExtemplate));
}
@@ -85,9 +81,8 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:edit')")
@Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.UPDATE)
- @PutMapping
- public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate)
- {
+ @PostMapping("/edit")
+ public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) {
return toAjax(ivrLibaExtemplateService.updateIvrLibaExtemplate(ivrLibaExtemplate));
}
@@ -96,9 +91,8 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:ivrextemplate:remove')")
@Log(title = "鎵╁睍璇濇湳妯℃澘搴�", businessType = BusinessType.DELETE)
- @DeleteMapping("/{subModuleIDs}")
- public AjaxResult remove(@PathVariable String[] subModuleIDs)
- {
+ @GetMapping("/remove/{subModuleIDs}")
+ public AjaxResult remove(@PathVariable String[] subModuleIDs) {
return toAjax(ivrLibaExtemplateService.deleteIvrLibaExtemplateBySubModuleIDs(subModuleIDs));
}
}
--
Gitblit v1.9.3