lyhzzz 1 năm trước cách đây
mục cha
commit
8edda46a83

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/config/WebAppConfig.java

@@ -22,7 +22,7 @@ public class WebAppConfig implements WebMvcConfigurer {
 						"/**/manage_jp/user/login/**",
 						"/**/test/**",
 						"/**/getNumListByUserName/**",
-						"/**/api/**"
+						"/**/manage_jp/api/**"
 				);
 
 		WebMvcConfigurer.super.addInterceptors(registry);

+ 3 - 3
src/main/java/com/fdkankan/manage_jp/controller/ProjectSceneController.java

@@ -25,9 +25,9 @@ public class ProjectSceneController extends BaseController{
     IProjectSceneGpsService projectSceneGpsService;
 
 
-    @PostMapping("/allSceneGps")
-    public Result list(@RequestBody ProjectParam param){
-        return Result.success(projectSceneGpsService.allSceneGps(param));
+    @GetMapping("/allSceneGps")
+    public Result allSceneGps(){
+        return Result.success(projectSceneGpsService.allSceneGps());
     }
 
 

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/service/IProjectSceneGpsService.java

@@ -24,5 +24,5 @@ public interface IProjectSceneGpsService extends IService<ProjectSceneGps> {
     void updateGps(String num,String lat,String lon,Integer type);
 
 
-    List<ProjectSceneGps> allSceneGps(ProjectParam param);
+    List<ProjectSceneGps> allSceneGps();
 }

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/service/impl/ProjectSceneGpsServiceImpl.java

@@ -119,7 +119,7 @@ public class ProjectSceneGpsServiceImpl extends ServiceImpl<IProjectSceneGpsMapp
     }
 
     @Override
-    public List<ProjectSceneGps> allSceneGps(ProjectParam param) {
+    public List<ProjectSceneGps> allSceneGps() {
 
         return this.list();
     }