| | |
| | | */ |
| | | @ApiOperation("查询患者用药记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedDrug patMedDrug) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | startPage(); |
| | | List<PatMedDrug> list = patMedDrugService.selectPatMedDrugList(patMedDrug); |
| | |
| | | @ApiOperation("新增患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | return toAjax(patMedDrugService.insertPatMedDrug(patMedDrug)); |
| | |
| | | @ApiOperation("修改患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | return toAjax(patMedDrugService.updatePatMedDrug(patMedDrug)); |
| | |
| | | @ApiOperation("删除患者用药记录") |
| | | @PreAuthorize("@ss.hasPermi('system:drug:remove')") |
| | | @Log(title = "患者用药记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(patMedDrugService.deletePatMedDrugByIds(ids)); |