lyhzzz 1 anno fa
parent
commit
5b08f1b6aa

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

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

+ 2 - 0
src/main/java/com/fdkankan/manage_jp/controller/ProjectController.java

@@ -48,5 +48,7 @@ public class ProjectController extends BaseController{
         projectService.del(param);
         return Result.success();
     }
+
+
 }
 

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

@@ -0,0 +1,36 @@
+package com.fdkankan.manage_jp.controller;
+
+
+import com.fdkankan.manage_jp.common.Result;
+import com.fdkankan.manage_jp.entity.Project;
+import com.fdkankan.manage_jp.service.IProjectSceneGpsService;
+import com.fdkankan.manage_jp.service.IProjectService;
+import com.fdkankan.manage_jp.vo.request.ProjectParam;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 
+ * @since 2024-08-14
+ */
+@RestController
+@RequestMapping("/manage_jp/api/projectScene")
+public class ProjectSceneController extends BaseController{
+
+    @Autowired
+    IProjectSceneGpsService projectSceneGpsService;
+
+
+    @PostMapping("/allSceneGps")
+    public Result list(@RequestBody ProjectParam param){
+        return Result.success(projectSceneGpsService.allSceneGps(param));
+    }
+
+
+    
+}
+

+ 2 - 2
src/main/java/com/fdkankan/manage_jp/entity/ProjectSceneGps.java

@@ -43,13 +43,13 @@ public class ProjectSceneGps implements Serializable {
     private String webSite;
 
     /**
-     * 
+     * 
      */
     @TableField("lat")
     private String lat;
 
     /**
-     * 
+     * 
      */
     @TableField("lon")
     private String lon;

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

@@ -2,6 +2,7 @@ package com.fdkankan.manage_jp.service;
 
 import com.fdkankan.manage_jp.entity.ProjectSceneGps;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.fdkankan.manage_jp.vo.request.ProjectParam;
 import com.fdkankan.manage_jp.vo.response.SceneGpsDb;
 
 import java.util.List;
@@ -23,4 +24,5 @@ public interface IProjectSceneGpsService extends IService<ProjectSceneGps> {
     void updateGps(String num,String lat,String lon,Integer type);
 
 
+    List<ProjectSceneGps> allSceneGps(ProjectParam param);
 }

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

@@ -7,14 +7,13 @@ import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 import com.fdkankan.fyun.face.FYunFileServiceInterface;
 import com.fdkankan.manage_jp.entity.ProjectSceneGps;
-import com.fdkankan.manage_jp.entity.ScenePlus;
-import com.fdkankan.manage_jp.entity.ScenePlusExt;
 import com.fdkankan.manage_jp.httpClient.service.LaserService;
 import com.fdkankan.manage_jp.mapper.IProjectSceneGpsMapper;
 import com.fdkankan.manage_jp.service.IProjectSceneGpsService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.fdkankan.manage_jp.service.IScenePlusExtService;
 import com.fdkankan.manage_jp.service.IScenePlusService;
+import com.fdkankan.manage_jp.vo.request.ProjectParam;
 import com.fdkankan.manage_jp.vo.response.SceneExtGpsVo;
 import com.fdkankan.manage_jp.vo.response.SceneGpsDb;
 import com.fdkankan.manage_jp.vo.response.SceneGpsVo;
@@ -118,4 +117,10 @@ public class ProjectSceneGpsServiceImpl extends ServiceImpl<IProjectSceneGpsMapp
         wrapper.set(ProjectSceneGps::getGpsSource,type);
         this.update(wrapper);
     }
+
+    @Override
+    public List<ProjectSceneGps> allSceneGps(ProjectParam param) {
+
+        return this.list();
+    }
 }