| | |
| | | |
| | | /** |
| | | * 患者高血压记录Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/hypertension") |
| | | @Api("患者高血压记录") |
| | | public class PatMedHypertensionController extends BaseController |
| | | { |
| | | @Api(description = "患者高血压记录") |
| | | public class PatMedHypertensionController extends BaseController { |
| | | @Autowired |
| | | private IPatMedHypertensionService patMedHypertensionService; |
| | | |
| | | /** |
| | | * 查询患者高血压记录列表 |
| | | */ |
| | | @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) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedHypertension patMedHypertension) { |
| | | List<PatMedHypertension> list = patMedHypertensionService.selectPatMedHypertensionList(patMedHypertension); |
| | | ExcelUtil<PatMedHypertension> util = new ExcelUtil<PatMedHypertension>(PatMedHypertension.class); |
| | | util.exportExcel(response, list, "患者高血压记录数据"); |
| | |
| | | */ |
| | | @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) |
| | | { |
| | | 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 |
| | | public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension) |
| | | { |
| | | @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 |
| | | public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension) |
| | | { |
| | | @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}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedHypertensionService.deletePatMedHypertensionByIds(ids)); |
| | | } |
| | | } |