From 495292b588949bcb2cb15eaa9657619aca7f5579 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 30 十月 2024 16:18:41 +0800
Subject: [PATCH] 修改降雨文件的jar

---
 src/main/java/com/se/simu/controller/SimuController.java |   60 ++----------------------------------------------------------
 1 files changed, 2 insertions(+), 58 deletions(-)

diff --git a/src/main/java/com/se/simu/controller/SimuController.java b/src/main/java/com/se/simu/controller/SimuController.java
index 265cb39..274004c 100644
--- a/src/main/java/com/se/simu/controller/SimuController.java
+++ b/src/main/java/com/se/simu/controller/SimuController.java
@@ -9,7 +9,6 @@
 import com.se.simu.domain.vo.CreateSimuVo;
 import com.se.simu.domain.vo.R;
 import com.se.simu.domain.vo.SimuVo;
-import com.se.simu.helper.StringHelper;
 import com.se.simu.service.GedbService;
 import com.se.simu.service.ResultService;
 import com.se.simu.service.SimuService;
@@ -57,8 +56,8 @@
             if (null == vo.getTotal() || vo.getTotal() < 1 || vo.getTotal() > 1000) {
                 return fail("闄嶉洦閲忎笉鑳戒负绌猴紝涓斿彇鍊煎湪1~1000涔嬮棿");
             }
-            if (null == vo.getDuration() || vo.getDuration() < 1 || vo.getDuration() > 120) {
-                return fail("浠跨湡鏃堕暱涓嶈兘涓虹┖锛屼笖鍙栧�煎湪1~120涔嬮棿");
+            if (null == vo.getDuration() || vo.getDuration() < 1 || vo.getDuration() > 10080) {
+                return fail("浠跨湡鏃堕暱涓嶈兘涓虹┖锛屼笖鍙栧�煎湪1~10080涔嬮棿");
             }
             if (null == vo.getMinx() || null == vo.getMiny() || null == vo.getMaxx() || null == vo.getMaxy()) {
                 return fail("閫夋嫨鑼冨洿涓嶈兘涓虹┖", false);
@@ -144,61 +143,6 @@
             }
 
             return success(paged.getRecords(), paged.getTotal());
-        } catch (Exception ex) {
-            return fail(ex, null);
-        }
-    }
-
-    @ApiOperation(value = "褰撳墠鏃堕棿 *")
-    @GetMapping("/getTime")
-    public Object getTime() {
-        return System.currentTimeMillis();
-    }
-
-    @ApiOperation(value = "testCallExe *")
-    @GetMapping("/testCallExe")
-    public R<Object> testCallExe() {
-        try {
-            DataPo data = new DataPo();
-            data.setInPath("20241010095328");
-
-            String str = uwService.callExe(data);
-
-            return success(str);
-        } catch (Exception ex) {
-            return fail(ex, null);
-        }
-    }
-
-    @ApiOperation(value = "testResuslt *")
-    @GetMapping("/testResuslt")
-    public R<Object> testResuslt() {
-        try {
-            DataPo data = new DataPo();
-            data.setEpsg(4548);
-            data.setInPath("20241010095328");
-            data.setStartTime(StringHelper.YMDHMS_FORMAT.parse("2024-09-30 00:00:00"));
-
-            resultService.process(data);
-
-            return success("ok");
-        } catch (Exception ex) {
-            return fail(ex, null);
-        }
-    }
-
-    @ApiOperation(value = "testSww2Tif *")
-    @GetMapping("/testSww2Tif")
-    public R<Object> testSww2Tif() {
-        try {
-            DataPo data = new DataPo();
-            data.setEpsg(4548);
-            data.setInPath("20241010095328");
-            data.setStartTime(StringHelper.YMDHMS_FORMAT.parse("2024-09-30 00:00:00"));
-
-            Object rs = uwService.copeDrainFiles(data);
-
-            return success(rs);
         } catch (Exception ex) {
             return fail(ex, null);
         }

--
Gitblit v1.9.3