| | |
| | | */ |
| | | @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) { |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) { |
| | | startPage(); |
| | | List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection); |
| | | return getDataTable(list); |
| | |
| | | * 导出患者检查检验记录列表 |
| | | */ |
| | | @ApiOperation("导出患者检查检验记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:export')") |
| | | @Log(title = "患者检查检验记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedInspection patMedInspection) { |
| | |
| | | * 获取患者检查检验记录详细信息 |
| | | */ |
| | | @ApiOperation("获取患者检查检验记录详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedInspectionService.selectPatMedInspectionById(id)); |
| | |
| | | /** |
| | | * 新增患者检查检验记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:inspection:add')") |
| | | //@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')") |
| | | //@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')") |
| | | //@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)); |
| | | } |