shuhao hai 5 meses
pai
achega
f2552f0d4a

+ 12 - 0
admin/src/main/java/com/flyer/foster/controller/app/AppFosterRecordController.java

@@ -44,6 +44,18 @@ public class AppFosterRecordController {
     }
 
     /**
+     * 修改树
+     */
+    @PutMapping("")
+    public R update(@RequestBody FosterRecord updateDTO) {
+        return R.ok().result(
+                iFosterRecordService.lambdaUpdate()
+                        .set(FosterRecord::getName, updateDTO.getName())
+                        .eq(FosterRecord::getId, updateDTO.getId())
+                        .update());
+    }
+
+    /**
 
      * 领养记录-分页
      * @param current