瀏覽代碼

[update] message:1.修改service名称;2.添加引用包名

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

+ 3 - 2
admin/src/main/java/com/flyer/foster/controller/app/AppFosterRecordController.java

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