From 796b44ea813a1133beae4f3a67f1c0263510c0c7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期日, 17 十一月 2024 09:45:07 +0800
Subject: [PATCH] 1

---
 src/main/java/com/moon/server/service/show/MarkService.java |   34 +---------------------------------
 1 files changed, 1 insertions(+), 33 deletions(-)

diff --git a/src/main/java/com/moon/server/service/show/MarkService.java b/src/main/java/com/moon/server/service/show/MarkService.java
index 3f9f5e7..a22cfd0 100644
--- a/src/main/java/com/moon/server/service/show/MarkService.java
+++ b/src/main/java/com/moon/server/service/show/MarkService.java
@@ -17,11 +17,8 @@
 import java.util.Date;
 import java.util.List;
 
-/**
- * 鏍囩粯
- * @author WWW
- */
 @Service
+@SuppressWarnings("ALL")
 public class MarkService implements MarkMapper {
     @Resource
     MarkMapper markMapper;
@@ -86,14 +83,6 @@
         return markMapper.updates(list);
     }
 
-    /**
-     * 涓嬭浇ShapeFile鏂囦欢
-     *
-     * @param ue   鐢ㄦ埛瀹炰綋
-     * @param list 鏍囩粯JSON瀹炰綋绫婚泦鍚�
-     * @return GUID
-     * @throws Exception 寮傚父
-     */
     public String downloadShp(UserEntity ue, List<MarkJsonEntity> list) throws Exception {
         String path = pathHelper.getTempPath();
         createShapeFiles(ue, list, path);
@@ -119,9 +108,6 @@
         return rows > 0 ? de.getGuid() : null;
     }
 
-    /**
-     * 鍒涘缓shp鏂囦欢
-     */
     private String createShapeFiles(UserEntity ue, List<MarkJsonEntity> list, String path) {
         List<MarkJsonEntity> points = getMarkByType(list, "POINT");
         if (points.size() > 0) {
@@ -139,9 +125,6 @@
         return path;
     }
 
-    /**
-     * 鑾峰彇shp鐩綍
-     */
     private String getShpDir(UserEntity ue, String parent) {
         String path = parent + File.separator + StringHelper.YMDHMS2_FORMAT.format(new Date());
 
@@ -153,9 +136,6 @@
         return path;
     }
 
-    /**
-     * 鑾峰彇鏍囩粯绫诲瀷
-     */
     private List<MarkJsonEntity> getMarkByType(List<MarkJsonEntity> list, String type) {
         List<MarkJsonEntity> rs = new ArrayList<>();
         for (MarkJsonEntity mark : list) {
@@ -170,9 +150,6 @@
         return rs;
     }
 
-    /**
-     * 鑾峰彇zip璺緞
-     */
     private String getZipPath() {
         String path = pathHelper.getDownloadFullPath() + File.separator + StringHelper.YMDHMS2_FORMAT.format(new Date()) + ".zip";
 
@@ -184,9 +161,6 @@
         return path;
     }
 
-    /**
-     * 鑾峰彇涓嬭浇瀹炰綋绫�
-     */
     private DownloadEntity getDownloadEntity(UserEntity ue, String file) throws Exception {
         DownloadEntity de = new DownloadEntity();
         de.setName(FileHelper.getFileName(file));
@@ -205,16 +179,10 @@
         return de;
     }
 
-    /**
-     * 鑾峰彇涓嬭浇鏂囦欢璺緞
-     */
     public String getDownloadFilePath(DownloadEntity de) {
         return pathHelper.getConfig().getDownloadPath() + File.separator + de.getUrl();
     }
 
-    /**
-     * 璇诲彇ShapeFile鏂囦欢鑾峰彇Mark瀹炰綋绫�
-     */
     public List<MarkJsonEntity> readShpForMarks(List<MetaFileEntity> list) {
         String fileName = null;
         for (MetaFileEntity mf : list) {

--
Gitblit v1.9.3