yxh
yxh
2024-01-04 a88e19be56fab4f06aae0248575b55fed41eaa1e
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonorchargeController.java
@@ -61,7 +61,7 @@
     */
    @ApiOperation("获取捐献案例器官列详细信息")
    @PreAuthorize("@ss.hasPermi('project:donorcharge:query')")
    @GetMapping(value = "/{id}")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return AjaxResult.success(serviceDonorchargeService.getById(id));
    }
@@ -72,7 +72,7 @@
    @ApiOperation("新增捐献案例器官列")
    @PreAuthorize("@ss.hasPermi('project:donorcharge:add')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    @RepeatSubmit
    public AjaxResult add(@RequestBody ServiceDonorcharge serviceDonorcharge) {
        return toAjax(serviceDonorchargeService.save(serviceDonorcharge));
@@ -84,7 +84,7 @@
    @ApiOperation("修改捐献案例器官列")
    @PreAuthorize("@ss.hasPermi('project:donorcharge:edit')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    @RepeatSubmit
    public AjaxResult edit(@RequestBody ServiceDonorcharge serviceDonorcharge) {
        return toAjax(serviceDonorchargeService.updateById(serviceDonorcharge));
@@ -96,7 +96,7 @@
    @ApiOperation("删除捐献案例器官列")
    @PreAuthorize("@ss.hasPermi('project:donorcharge:remove')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(serviceDonorchargeService.removeByIds(Arrays.asList(ids)));
    }