| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | |
| | | * 患者手术记录Controller |
| | | * |
| | | * @author lihu |
| | | * @date 2024-08-05 |
| | | * @date 2025-02-25 |
| | | */ |
| | | @Api("患者手术记录") |
| | | @RestController |
| | |
| | | */ |
| | | @ApiOperation("查询患者手术记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedOperation patMedOperation) { |
| | | startPage(); |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedOperation patMedOperation) { |
| | | //startPage(); |
| | | PageUtils.startPageByPost(patMedOperation.getPageNum(), patMedOperation.getPageSize()); |
| | | List<PatMedOperation> list = patMedOperationService.selectPatMedOperationList(patMedOperation); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("导出患者手术记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:export')") |
| | | @Log(title = "患者手术记录" , businessType = BusinessType.EXPORT) |
| | | @Log(title = "患者手术记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOperation patMedOperation) { |
| | | List<PatMedOperation> list = patMedOperationService.selectPatMedOperationList(patMedOperation); |
| | |
| | | /** |
| | | * 新增患者手术记录 |
| | | */ |
| | | @ApiOperation("新增患者手术记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:add')") |
| | | @Log(title = "患者手术记录" , businessType = BusinessType.INSERT) |
| | | @Log(title = "患者手术记录", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOperation patMedOperation) { |
| | | return toAjax(patMedOperationService.insertPatMedOperation(patMedOperation)); |
| | |
| | | */ |
| | | @ApiOperation("修改患者手术记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:edit')") |
| | | @Log(title = "患者手术记录" , businessType = BusinessType.UPDATE) |
| | | @Log(title = "患者手术记录", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOperation patMedOperation) { |
| | | return toAjax(patMedOperationService.updatePatMedOperation(patMedOperation)); |
| | |
| | | */ |
| | | @ApiOperation("删除患者手术记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:remove')") |
| | | @Log(title = "患者手术记录" , businessType = BusinessType.DELETE) |
| | | @Log(title = "患者手术记录", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedOperationService.deletePatMedOperationByIds(ids)); |