liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
@@ -37,9 +37,9 @@
     * 查询患者体重记录列表
     */
    @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);
@@ -50,7 +50,7 @@
     * 导出患者体重记录列表
     */
    @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)
@@ -64,7 +64,7 @@
     * 获取患者体重记录详细信息
     */
    @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)
@@ -76,9 +76,9 @@
     * 新增患者体重记录
     */
    @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));
@@ -88,9 +88,9 @@
     * 修改患者体重记录
     */
    @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));
@@ -100,10 +100,10 @@
     * 删除患者体重记录
     */
    @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));