liusheng
21 小时以前 e4e220916dd2a4aa649a9b0162e5b5ed0dc9d7e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.ruoyi.web.controller.smartor;
 
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.smartor.domain.ServiceTaskdept;
import com.smartor.service.IServiceTaskdeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * 模板科室关联Controller
 *
 * @author lihu
 * @date 2025-01-20
 */
@Api("模板科室关联")
@RestController
@RequestMapping("/smartor/taskdept")
public class ServiceTaskdeptController extends BaseController {
    @Autowired
    private IServiceTaskdeptService serviceTaskdeptService;
 
    /**
     * 查询模板科室关联列表
     */
    @ApiOperation("查询模板科室关联列表")
    //@PreAuthorize("@ss.hasPermi('smartor:taskdept:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody ServiceTaskdept serviceTaskdept) {
        startPage();
        List<ServiceTaskdept> list = serviceTaskdeptService.selectServiceTaskdeptList(serviceTaskdept);
        return getDataTable(list);
    }
 
    /**
     * 删除模板科室关联
     */
    @ApiOperation("删除模板科室关联")
    //@PreAuthorize("@ss.hasPermi('smartor:taskdept:remove')")
    @Log(title = "模板科室关联", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{id}")
    public AjaxResult remove(@PathVariable Long id) {
        return toAjax(serviceTaskdeptService.deleteServiceTaskdeptById(id));
    }
}