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