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 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)); } }