liusheng
2023-09-27 da3edb56ef670c58f6de09d28fde986d6be5a845
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;
@@ -33,8 +34,7 @@
@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));
    }
@@ -92,8 +88,7 @@
    @Log(title = "专家费用", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    @RepeatSubmit    
    public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype)
    {
    public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype) {
        return toAjax(baseExpertfeetypeService.updateById(baseExpertfeetype));
    }
@@ -103,8 +98,7 @@
    @ApiOperation("删除专家费用")
    @Log(title = "专家费用", businessType = BusinessType.DELETE)
    @DeleteMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(baseExpertfeetypeService.removeByIds(Arrays.asList(ids)));
    }
}