| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | package com.smartor.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | /** |
| | | * 患者档案Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-02-22 |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/archive") |
| | | @RequestMapping("/smartor/patarchive") |
| | | public class PatArchiveController extends BaseController |
| | | { |
| | | @Autowired |
| | |
| | | /** |
| | | * 查询患者档案列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:list')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatArchive patArchive) |
| | | { |
| | |
| | | /** |
| | | * 导出患者档案列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:export')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:export')") |
| | | @Log(title = "患者档案", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatArchive patArchive) |
| | |
| | | /** |
| | | * 获取患者档案详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:query')") |
| | | @GetMapping(value = "/{PatID}") |
| | | public AjaxResult getInfo(@PathVariable("PatID") Long PatID) |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:query')") |
| | | @GetMapping(value = "/{patid}") |
| | | public AjaxResult getInfo(@PathVariable("patid") Long patid) |
| | | { |
| | | return success(patArchiveService.selectPatArchiveByPatID(PatID)); |
| | | return success(patArchiveService.selectPatArchiveByPatid(patid)); |
| | | } |
| | | |
| | | /** |
| | | * 新增患者档案 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:add')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | @Log(title = "患者档案", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PatArchive patArchive) |
| | |
| | | /** |
| | | * 修改患者档案 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:edit')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | @Log(title = "患者档案", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PatArchive patArchive) |
| | |
| | | /** |
| | | * 删除患者档案 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:archive:remove')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')") |
| | | @Log(title = "患者档案", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{PatIDs}") |
| | | public AjaxResult remove(@PathVariable Long[] PatIDs) |
| | | @DeleteMapping("/{patids}") |
| | | public AjaxResult remove(@PathVariable Long[] patids) |
| | | { |
| | | return toAjax(patArchiveService.deletePatArchiveByPatIDs(PatIDs)); |
| | | return toAjax(patArchiveService.deletePatArchiveByPatids(patids)); |
| | | } |
| | | } |