liusheng
2023-12-22 7f9e11864762e6a1f9231a7657e736d81b2abeb4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
@@ -25,7 +25,7 @@
 * @author ruoyi
 * @date 2023-06-07
 */
@Api("患者体重记录")
@Api(description = "患者体重记录")
@RestController
@RequestMapping("/system/weight")
public class PatMedWeightController extends BaseController
@@ -38,8 +38,8 @@
     */
    @ApiOperation("查询患者体重记录列表")
    @PreAuthorize("@ss.hasPermi('system:weight:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatMedWeight patMedWeight)
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody PatMedWeight patMedWeight)
    {
        startPage();
        List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight);
@@ -78,7 +78,7 @@
    @ApiOperation("新增患者体重记录")
    @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));
@@ -90,7 +90,7 @@
    @ApiOperation("修改患者体重记录")
    @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));
@@ -103,7 +103,7 @@
    @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));