ソースを参照

更新接口poi

chenendian 2 週間 前
コミット
54dff866e5

+ 16 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/yzt/ZymlController.java

@@ -184,4 +184,20 @@ public class ZymlController extends BaseController {
     }
 
 
+    /**
+     *
+     *
+     * @return
+     */
+    @GetMapping("/GetTree/tiltedModel")
+    public RequestResult tiltedModel(String name) {
+
+        return zymlService.GetZymlShareList(name);
+    }
+
+
+
+
+
+
 }

+ 33 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/yzt/searchController.java

@@ -59,4 +59,37 @@ public class searchController extends BaseController {
     public RequestResult bookmarkDel(@RequestBody Map params) {
         return searchService.bookmarkDel(params.get("id").toString());
     }
+
+
+
+    /**
+     * 分词查询list
+     *
+     * @return
+     */
+    @PostMapping("/poiSearchList")
+    public RequestResult poiSearchList(@RequestBody PoiSearchDTO poiSearchDTO) {
+        return searchService.poi(poiSearchDTO);
+    }
+
+
+
+    /**
+     * 兴趣点查询
+     *
+     * @return
+     */
+    @GetMapping("/getPoiByName")
+    public RequestResult getPoiByName(@RequestBody PoiSearchDTO poiSearchDTO) {
+        //return searchService.poi(poiSearchDTO);
+        return RequestResult.success("查询成功!", null);
+    }
+
+
+
+
+
+
+
+
 }

+ 11 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/domain/yzt/PoiSearchDTO.java

@@ -1,11 +1,14 @@
 package com.onemap.apply.domain.yzt;
 
+import java.util.List;
+
 /**
  * 兴趣点查询参数实体
  */
 public class PoiSearchDTO {
     private String name ;
     private String type ;
+    private List<String> childrenWord ;
     private Integer limit;
     private Integer offset ;
 
@@ -40,4 +43,12 @@ public class PoiSearchDTO {
     public void setOffset(Integer offset) {
         this.offset = offset;
     }
+
+    public List<String> getChildrenWord() {
+        return childrenWord;
+    }
+
+    public void setChildrenWord(List<String> childrenWord) {
+        this.childrenWord = childrenWord;
+    }
 }

+ 7 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/mapper/yzt/SearchMapper.java

@@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.Param;
 import java.util.List;
 
 /**
+ *
  * 资源目录 数据层
  *
  * @author onemap
@@ -20,4 +21,10 @@ public interface SearchMapper {
     List<CollectionDTO> bookmark(@Param("name") String name, @Param("type") String type, @Param("limit") Integer limit, @Param("offset") Integer offset);
 
     Integer bookmarkcount(@Param("name") String name, @Param("type") String type);
+
+    List<PoiDTO>  getPoiByName(@Param("nameList") String nameList);
+
+    List<PoiDTO> poiLikeName(@Param("nameList") String nameList, @Param("limit") Integer limit, @Param("offset") Integer offset);
+
+
 }

+ 30 - 0
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/yzt/SearchMapper.xml

@@ -32,4 +32,34 @@
         </if>
     </select>
 
+
+    <select id="getPoiByName" parameterType="java.lang.String" resultType="com.onemap.apply.domain.yzt.PoiDTO">
+        select t.name,t.adress,public.st_x ( t.geom ) x,public.st_y ( t.geom ) y
+        from  poi t  where 1=1
+         <if test="nameList != null and nameList.size()>0">
+             and t.name in
+             <foreach collection="nameList" item="name" open="(" separator="," close=")">
+                 #{name}
+             </foreach>
+        </if>
+    </select>
+
+
+    <select id="poiLikeName"  resultType="com.onemap.apply.domain.yzt.PoiDTO">
+        select t.name,t.adress,public.st_x ( t.geom ) x,public.st_y ( t.geom ) y
+        from  poi t  where 1=1
+         <if test="nameList != null and nameList.size()>0">
+             and t.name in
+             <foreach collection="nameList" item="name" open="(" separator="," close=")">
+                 #{name}
+             </foreach>
+        </if>
+        limit ${limit} offset  ${offset}
+    </select>
+
+
+
+
+
+
 </mapper>