liusheng
2024-11-29 8d913e5594f45ca2a4ce656ea9feb99ffe715913
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatSpeciallistController.java
@@ -8,6 +8,8 @@
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.smartor.domain.PatSpeciallist;
import com.smartor.service.IPatSpeciallistService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@@ -21,6 +23,7 @@
 * @author ruoyi
 * @date 2024-08-02
 */
@Api(description = "专病患者")
@RestController
@RequestMapping("/smartor/speciallist")
public class PatSpeciallistController extends BaseController
@@ -31,7 +34,8 @@
    /**
     * 查询专病患者列表
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:list')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:list')")
    @ApiOperation("查询专病患者列表")
    @GetMapping("/list")
    public TableDataInfo list(PatSpeciallist patSpeciallist)
    {
@@ -43,8 +47,9 @@
    /**
     * 导出专病患者列表
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:export')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:export')")
    @Log(title = "专病患者", businessType = BusinessType.EXPORT)
    @ApiOperation("导出专病患者列表")
    @PostMapping("/export")
    public void export(HttpServletResponse response, PatSpeciallist patSpeciallist)
    {
@@ -56,7 +61,7 @@
    /**
     * 获取专病患者详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:query')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:query')")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
@@ -66,8 +71,9 @@
    /**
     * 新增专病患者
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:add')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:add')")
    @Log(title = "专病患者", businessType = BusinessType.INSERT)
    @ApiOperation("新增专病患者")
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist)
    {
@@ -77,8 +83,9 @@
    /**
     * 修改专病患者
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:edit')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:edit')")
    @Log(title = "专病患者", businessType = BusinessType.UPDATE)
    @ApiOperation("修改专病患者")
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist)
    {
@@ -88,9 +95,10 @@
    /**
     * 删除专病患者
     */
    @PreAuthorize("@ss.hasPermi('system:speciallist:remove')")
    //@PreAuthorize("@ss.hasPermi('system:speciallist:remove')")
    @Log(title = "专病患者", businessType = BusinessType.DELETE)
   @DeleteMapping("/remove/{ids}")
    @ApiOperation("删除专病患者")
   @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(patSpeciallistService.deletePatSpeciallistByIds(ids));