| | |
| | | /** |
| | | * 查询患者高血压记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:list')") |
| | | @GetMapping("/list") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:list')") |
| | | @PostMapping("/list") |
| | | @ApiOperation("查询患者高血压记录列表") |
| | | public TableDataInfo list(PatMedHypertension patMedHypertension) { |
| | | public TableDataInfo list(@RequestBody PatMedHypertension patMedHypertension) { |
| | | startPage(); |
| | | List<PatMedHypertension> list = patMedHypertensionService.selectPatMedHypertensionList(patMedHypertension); |
| | | return getDataTable(list); |
| | |
| | | * 导出患者高血压记录列表 |
| | | */ |
| | | @ApiOperation("患者高血压记录") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:export')") |
| | | @Log(title = "患者高血压记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedHypertension patMedHypertension) { |
| | |
| | | */ |
| | | @ApiOperation("获取患者高血压记录详细信息") |
| | | @ApiImplicitParam(name = "getInfo", value = "主键ID", dataType = "long", dataTypeClass = Long.class) |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedHypertensionService.selectPatMedHypertensionById(id)); |
| | |
| | | * 新增患者高血压记录 |
| | | */ |
| | | @ApiOperation("患者高血压记录") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:add')") |
| | | @Log(title = "患者高血压记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension) { |
| | | return toAjax(patMedHypertensionService.insertPatMedHypertension(patMedHypertension)); |
| | | } |
| | |
| | | * 修改患者高血压记录 |
| | | */ |
| | | @ApiOperation("患者高血压记录") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:edit')") |
| | | @Log(title = "患者高血压记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension) { |
| | | return toAjax(patMedHypertensionService.updatePatMedHypertension(patMedHypertension)); |
| | | } |
| | |
| | | * 删除患者高血压记录 |
| | | */ |
| | | @ApiOperation("患者高血压记录") |
| | | @PreAuthorize("@ss.hasPermi('system:hypertension:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:remove')") |
| | | @Log(title = "患者高血压记录", businessType = BusinessType.DELETE) |
| | | @ApiImplicitParam(name = "remove", value = "主键ID", dataType = "long", dataTypeClass = Array.class) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedHypertensionService.deletePatMedHypertensionByIds(ids)); |
| | | } |