| | |
| | | */ |
| | | @Api(description = "患者检查检验记录") |
| | | @RestController |
| | | @RequestMapping("/system/inspection") |
| | | @RequestMapping("/smartor/inspection") |
| | | public class PatMedInspectionController extends BaseController { |
| | | @Autowired |
| | | private IPatMedInspectionService patMedInspectionService; |
| | |
| | | */ |
| | | @ApiOperation("查询患者检查检验记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedInspection patMedInspection) { |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) { |
| | | startPage(); |
| | | List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:add')") |
| | | @Log(title = "新增患者检查检验记录", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增患者检查检验记录") |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedInspection patMedInspection) { |
| | | return toAjax(patMedInspectionService.insertPatMedInspection(patMedInspection)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:edit')") |
| | | @Log(title = "修改患者检查检验记录", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改患者检查检验记录") |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedInspection patMedInspection) { |
| | | return toAjax(patMedInspectionService.updatePatMedInspection(patMedInspection)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:remove')") |
| | | @Log(title = "患者检查检验记录", businessType = BusinessType.DELETE) |
| | | @ApiOperation("患者检查检验记录") |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedInspectionService.deletePatMedInspectionByIds(ids)); |
| | | } |