| | |
| | | * 查询患者体重记录列表 |
| | | */ |
| | | @ApiOperation("查询患者体重记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedWeight patMedWeight) |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | startPage(); |
| | | List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight); |
| | |
| | | * 导出患者体重记录列表 |
| | | */ |
| | | @ApiOperation("导出患者体重记录列表") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:export')") |
| | | @Log(title = "患者体重记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedWeight patMedWeight) |
| | |
| | | * 获取患者体重记录详细信息 |
| | | */ |
| | | @ApiOperation("获取患者体重记录详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:query')") |
| | | @ApiImplicitParam(name = "getInfo", value = "主键ID", dataType = "long", dataTypeClass = Long.class) |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | |
| | | * 新增患者体重记录 |
| | | */ |
| | | @ApiOperation("新增患者体重记录") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:add')") |
| | | @Log(title = "患者体重记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight)); |
| | |
| | | * 修改患者体重记录 |
| | | */ |
| | | @ApiOperation("修改患者体重记录") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:edit')") |
| | | @Log(title = "修改患者体重记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight)); |
| | |
| | | * 删除患者体重记录 |
| | | */ |
| | | @ApiOperation("删除患者体重记录") |
| | | @PreAuthorize("@ss.hasPermi('system:weight:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight: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(patMedWeightService.deletePatMedWeightByIds(ids)); |