Browse Source

应急手机端代码提交

Memory_LG 3 months ago
parent
commit
ec52ffe011

+ 7 - 4
src/main/java/com/sooka/sponest/mobile/data/emergency/controller/AppIndexController.java

@@ -4,10 +4,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
 import com.sooka.sponest.mobile.data.emergency.domain.AppIndexVO;
 import com.sooka.sponest.mobile.data.emergency.feign.service.RemoteIndexService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
 @RequestMapping("/AppIndexController")
@@ -20,4 +17,10 @@ public class AppIndexController {
     public AjaxResult getIndexPageData(@RequestBody AppIndexVO vo){
         return appIndexService.getIndexPageData(vo);
     }
+
+
+    @GetMapping("/getLateInspectionList")
+    public AjaxResult getLateInspectionList(AppIndexVO vo){
+        return appIndexService.getLateInspectionList();
+    }
 }

+ 1 - 8
src/main/java/com/sooka/sponest/mobile/data/emergency/feign/factory/RemoteIndexServiceFallbackFactory.java

@@ -14,13 +14,6 @@ public class RemoteIndexServiceFallbackFactory implements FallbackFactory<Remote
     @Override
     public RemoteIndexService create(Throwable cause) {
 
-        log.error("应急-企业报错:{}", cause.getMessage());
-        return  new RemoteIndexService() {
-
-            @Override
-            public AjaxResult getIndexPageData(AppIndexVO vo) {
-                return null;
-            }
-        };
+        return null;
     }
 }

+ 4 - 0
src/main/java/com/sooka/sponest/mobile/data/emergency/feign/service/RemoteIndexService.java

@@ -5,6 +5,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
 import com.sooka.sponest.mobile.data.emergency.domain.AppIndexVO;
 import com.sooka.sponest.mobile.data.emergency.feign.factory.RemoteIndexServiceFallbackFactory;
 import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
@@ -17,4 +18,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 public interface RemoteIndexService {
     @PostMapping("/AppIndexController/getIndexPageData")
     AjaxResult getIndexPageData(@RequestBody AppIndexVO vo);
+
+    @GetMapping("/AppIndexController/getLateInspectionList")
+    AjaxResult getLateInspectionList();
 }