LAPTOP-BJJ3IV5R\SIWEI 11 месяцев назад
Родитель
Сommit
ece2e1252b

+ 1 - 4
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/fzss/HgxfxServiceImpl.java

@@ -119,10 +119,7 @@ public class HgxfxServiceImpl implements IHgxfxService {
             hgxfxScxRwMapper.insert(scxRw);
         }
 
-        ExecutorService executorService = Executors.newFixedThreadPool(5);
-        executorService.execute(() -> {
-            hxfxHandleService.hgxfxHandle(hgxfxDTO.getBsm(), ewkt);
-        });
+        hxfxHandleService.hgxfxHandle(hgxfxDTO.getBsm(), ewkt);
         return RequestResult.success(hgxfxDTO.getBsm());
     }
 

+ 2 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/fzss/hgxfxjg/HgxfxHandleService.java

@@ -7,6 +7,7 @@ import com.onemap.common.core.utils.StringUtils;
 import com.onemap.common.core.web.domain.RequestResult;
 import com.onemap.system.api.AnalyseService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 
 import java.util.*;
@@ -32,6 +33,7 @@ public class HgxfxHandleService {
     @Autowired
     private FxrwrzMapper fxrwrzMapper;
 
+    @Async
     public void hgxfxHandle(String bsm, String ewkt) {
         QueryWrapper<HgxfxDTO> hgxfxWrapper = new QueryWrapper<HgxfxDTO>();
         hgxfxWrapper.eq("bsm", bsm);

+ 1 - 1
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/fzss/HgxfxMapper.xml

@@ -34,7 +34,7 @@
 
     <select id="getXzfw" parameterType="java.lang.String" resultType="map">
         SELECT id,
-               public.st_asewkt(geom) AS geom,
+               public.st_asewkt(public.st_transform(geom,4525)) AS geom,
                area,
                create_time
         FROM t_fzss_zhxz_file