瀏覽代碼

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

kelei 6 月之前
父節點
當前提交
0792405a26
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      admin/src/main/java/com/flyer/foster/controller/app/AppTreeController.java

+ 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);
     }
 }