From dcd3eb3bbbc25b01155493f20f5680fc6d4aee11 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 26 十月 2023 16:02:07 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java | 32 +++++++++++++-------------------
1 files changed, 13 insertions(+), 19 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
index 87285c3..c666fc6 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseExpertfeetypeController.java
@@ -1,7 +1,8 @@
-package com.ruoyi.project.controller;
+package com.ruoyi.web.controller.project;
import java.util.Arrays;
import java.util.List;
+
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -26,15 +27,14 @@
/**
* 涓撳璐圭敤Controller
- *
+ *
* @author ruoyi
* @date 2022-04-19
*/
@Api("涓撳璐圭敤")
@RestController
@RequestMapping("/project/expertfeetype")
-public class BaseExpertfeetypeController extends BaseController
-{
+public class BaseExpertfeetypeController extends BaseController {
@Autowired
private IBaseExpertfeetypeService baseExpertfeetypeService;
@@ -43,8 +43,7 @@
*/
@ApiOperation("鏌ヨ涓撳璐圭敤鍒楄〃")
@GetMapping("/list")
- public TableDataInfo list(BaseExpertfeetype baseExpertfeetype)
- {
+ public TableDataInfo list(BaseExpertfeetype baseExpertfeetype) {
startPage();
List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype);
return getDataTable(list);
@@ -56,8 +55,7 @@
@ApiOperation("瀵煎嚭涓撳璐圭敤鍒楄〃")
@Log(title = "涓撳璐圭敤", businessType = BusinessType.EXPORT)
@GetMapping("/export")
- public AjaxResult export(BaseExpertfeetype baseExpertfeetype)
- {
+ public AjaxResult export(BaseExpertfeetype baseExpertfeetype) {
List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype);
ExcelUtil<BaseExpertfeetype> util = new ExcelUtil<BaseExpertfeetype>(BaseExpertfeetype.class);
return util.exportExcel(list, "涓撳璐圭敤鏁版嵁");
@@ -68,8 +66,7 @@
*/
@ApiOperation("鑾峰彇涓撳璐圭敤璇︾粏淇℃伅")
@GetMapping(value = "/{id}")
- public AjaxResult getInfo(@PathVariable("id") Long id)
- {
+ public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(baseExpertfeetypeService.getById(id));
}
@@ -80,8 +77,7 @@
@Log(title = "涓撳璐圭敤", businessType = BusinessType.INSERT)
@PostMapping
@RepeatSubmit
- public AjaxResult add(@RequestBody BaseExpertfeetype baseExpertfeetype)
- {
+ public AjaxResult add(@RequestBody BaseExpertfeetype baseExpertfeetype) {
return toAjax(baseExpertfeetypeService.save(baseExpertfeetype));
}
@@ -90,10 +86,9 @@
*/
@ApiOperation("淇敼涓撳璐圭敤")
@Log(title = "涓撳璐圭敤", businessType = BusinessType.UPDATE)
- @PutMapping
- @RepeatSubmit
- public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype)
- {
+ @PostMapping("/edit")
+ @RepeatSubmit
+ public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype) {
return toAjax(baseExpertfeetypeService.updateById(baseExpertfeetype));
}
@@ -102,9 +97,8 @@
*/
@ApiOperation("鍒犻櫎涓撳璐圭敤")
@Log(title = "涓撳璐圭敤", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
- public AjaxResult remove(@PathVariable Long[] ids)
- {
+ @DeleteMapping("/remove/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(baseExpertfeetypeService.removeByIds(Arrays.asList(ids)));
}
}
--
Gitblit v1.9.3