From cbc15bffc95c486ec8fe67270d8d4e08de7b1407 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 06 May 2024 14:54:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/ht-dev' into ht-dev

---
 src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java |   26 +++++++++++---------------
 1 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java b/src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java
index 8c5f945..5e256ed 100644
--- a/src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java
+++ b/src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java
@@ -1,5 +1,6 @@
 package com.dji.sample.patches.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.dji.sample.patches.config.pojo.PatchesConfigPojo;
 import com.dji.sample.patches.dao.ShpToDataSourceMapper;
 import com.dji.sample.patches.model.entity.LotInfo;
@@ -87,6 +88,7 @@
         }
     }
 
+
     /**
      * 将SQlite数据库中DKJBXX对象转换为LotInfo对象。
      *
@@ -94,26 +96,20 @@
      * @return 返回一个构建好的LotInfo对象,包含从数据库实体中转换来的信息。
      */
     private LotInfo dbConvertToEntity(TbDkjbxxEntity file, String workspaceId) {
-        double[] coordinates = extractCoordinates(pointCGCStoWGS(file.getXzb(), file.getYzb()));
         LotInfo.LotInfoBuilder builder = LotInfo.builder();
-        builder.bsm(file.getBsm())
-                .bz(file.getBz())
-                .dkmj(file.getDkmj())
-                .dkmc(file.getDkmc())
-                .dkbh(file.getDkbh())
-                .xmc(file.getXmc())
-                .xzb(coordinates[0])
-                .sfbhzdk(file.getSfbhzdk())
-                .sjlx(file.getSjlx())
-                .dkfw(poylonCGCStoWGS(file.getDkfw()))
-                .xzqdm(file.getXzqdm())
-                .yzb(coordinates[1])
-                .kzxx(file.getKzxx())
-                .dklx(file.getDklx())
+        builder.bsm(file.getFId())
+                .xzqdm(file.getFXzqdmsys())
+                .dkbh(file.getFTbbh())
+                .dkfw(file.getFShape())
                 .workspaceId(workspaceId)
+                .isplan(0)
                 .build();
         return builder.build();
     }
+
+    public List<LotInfo> getNoPlan(){
+   return shpToDataSourceMapper.selectList(new LambdaQueryWrapper<LotInfo>().eq(LotInfo::getIsplan,0));
+    }
 }
 
 

--
Gitblit v1.9.3