|
@@ -1,12 +1,13 @@
|
|
|
package com.flyer.foster.controller.app;
|
|
|
|
|
|
+import com.flyer.foster.dto.app.FosterRecordAddDTO;
|
|
|
import com.flyer.foster.entity.FosterRecord;
|
|
|
-import com.flyer.foster.entity.Garden;
|
|
|
import com.flyer.foster.service.IFosterRecordService;
|
|
|
import com.flyer.util.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -30,7 +31,7 @@ public class AppFosterRecordController {
|
|
|
public R list(@PathVariable Integer gardenId) {
|
|
|
// Integer appUserId = (Integer)StpAppUtil.getLoginId();
|
|
|
Integer appUserId = 4;
|
|
|
- List<FosterRecord> res = service.lambdaQuery().
|
|
|
+ List<FosterRecord> res = iFosterRecordService.lambdaQuery().
|
|
|
eq(FosterRecord::getAppUserId, appUserId)
|
|
|
.eq(FosterRecord::getGardenId, gardenId)
|
|
|
.list();
|