| | |
| | | |
| | | /** |
| | | * 患者用药记录Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-16 |
| | | */ |
| | |
| | | * 查询患者用药记录列表 |
| | | */ |
| | | @ApiOperation("查询患者用药记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | |
| | | * 导出患者用药记录列表 |
| | | */ |
| | | @ApiOperation("导出患者用药记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:export')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedDrug patMedDrug) |
| | |
| | | * 获取患者用药记录详细信息 |
| | | */ |
| | | @ApiOperation("获取患者用药记录详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | * 新增患者用药记录 |
| | | */ |
| | | @ApiOperation("新增患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedDrug patMedDrug) |
| | |
| | | * 修改患者用药记录 |
| | | */ |
| | | @ApiOperation("修改患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedDrug patMedDrug) |
| | |
| | | * 删除患者用药记录 |
| | | */ |
| | | @ApiOperation("删除患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:remove')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |