Explorar o código

Merge branch 'master' of http://www.sysuimars.com:3000/kelei12399/foster

kelei hai 6 meses
pai
achega
0792405a26

+ 4 - 1
admin/src/main/java/com/flyer/foster/controller/app/AppTreeController.java

@@ -2,6 +2,7 @@ package com.flyer.foster.controller.app;
 
 import com.flyer.foster.dto.TreeAddDTO;
 import com.flyer.foster.dto.TreeUpdateDTO;
+import com.flyer.foster.entity.FosterRecord;
 import com.flyer.foster.entity.Tree;
 import com.flyer.foster.service.ITreeService;
 import com.flyer.util.R;
@@ -39,6 +40,8 @@ public class AppTreeController {
      */
     @GetMapping("/getRandomTree/{areaId}")
     public R getRandomTree(@PathVariable Integer areaId){
-        return R.ok().result(iTreeService.lambdaQuery().eq(Tree::getAreaId, areaId).list());
+        List<Tree> list = iTreeService.lambdaQuery().eq(Tree::getAreaId, areaId).list();
+
+        return R.ok().result(null);
     }
 }