| | |
| | | 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.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Api(description = "专病患者") |
| | | @RestController |
| | | @RequestMapping("/smartor/speciallist") |
| | | public class PatSpeciallistController extends BaseController |
| | |
| | | /** |
| | | * 查询专病患者列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | @ApiOperation("查询专病患者列表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) |
| | | { |
| | |
| | | /** |
| | | * 导出专病患者列表 |
| | | */ |
| | | @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) |
| | | { |
| | |
| | | /** |
| | | * 获取专病患者详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增专病患者 |
| | | */ |
| | | @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) |
| | | { |
| | |
| | | /** |
| | | * 修改专病患者 |
| | | */ |
| | | @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) |
| | | { |
| | |
| | | /** |
| | | * 删除专病患者 |
| | | */ |
| | | @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)); |