Procházet zdrojové kódy

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

kelei před 6 měsíci
rodič
revize
74fcdd6f02

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