| 
					
				 | 
			
			
				@@ -1,7 +1,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.flyer.foster.controller.app; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.flyer.foster.dto.TreeUpdateDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.flyer.foster.dto.app.AppFosterRecordAddDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.flyer.foster.dto.TreeUpdateDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.flyer.foster.dto.app.AppFosterRecordQueryDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.flyer.foster.entity.FosterRecord; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.flyer.foster.entity.Tree; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.flyer.foster.pojo.StpAppUtil; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -28,6 +30,7 @@ public class AppFosterRecordController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 根据果园id查询领养记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/list/{gardenId}") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -41,22 +44,20 @@ public class AppFosterRecordController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 修改树 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 领养记录-分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param current 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param queryDTO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PutMapping("") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public R update(@RequestBody FosterRecord updateDTO) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String appUserId = StpAppUtil.getLoginId().toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return R.ok().result( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                iFosterRecordService.lambdaUpdate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .set(FosterRecord::getName, updateDTO.getName()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .eq(FosterRecord::getGardenId, updateDTO.getGardenId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .eq(FosterRecord::getAppUserId, appUserId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        .update()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/list/{current}/{size}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public R getPageList(@PathVariable Integer current, @PathVariable Integer size, AppFosterRecordQueryDTO queryDTO) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return R.ok().result(iFosterRecordService.getPageList(new Page<>(current, size), queryDTO)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 确认领养 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+* 确认领养     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("") 
			 |