From e16302f9d475c7cc4dd18c5abf1a23cb5502e362 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期三, 28 五月 2025 14:57:56 +0800
Subject: [PATCH] 密码验证加-

---
 src/main/java/com/whyc/controller/StationInfController.java |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/whyc/controller/StationInfController.java b/src/main/java/com/whyc/controller/StationInfController.java
index 273b018..fe2e6c0 100644
--- a/src/main/java/com/whyc/controller/StationInfController.java
+++ b/src/main/java/com/whyc/controller/StationInfController.java
@@ -15,7 +15,7 @@
 @RestController
 @Api(tags = "绔欑偣绠$悊")
 @RequestMapping("StationInf")
-public class StationInfController {
+public class StationInfController extends BaseController{
     @Autowired
     private StationInfService service;
 
@@ -30,6 +30,18 @@
         return service.searchStationAll(pageCurr, pageSize, stationName1, stationName2, stationName5, nodeStation, stationType);
     }
 
+    @ApiOperation(value = "鏌ヨ鎵�鏈夌殑鏈烘埧淇℃伅(鍗椾含鏈烘埧閰嶇疆)")
+    @GetMapping("searchNjStationAll")
+    public Response searchNjStationAll() {
+        return service.searchNjStationAll();
+    }
+
+    @ApiOperation(value = "鏍规嵁stationId鍜宼ogetherFlag鏌ヨ鍙﹀鐩稿悓鐨勬満鎴�")
+    @GetMapping("getTogetherFlagStationInf")
+    public Response getTogetherFlagStationInf(@RequestParam String stationId, @RequestParam int togetherFlag) {
+        return service.getTogetherFlagStationInf(stationId, togetherFlag);
+    }
+
     @ApiOperation(value = "娣诲姞绔欑偣")
     @PostMapping("insertStation")
     public Response insertStation(@RequestBody StationInf stationInf) {
@@ -40,8 +52,8 @@
     @GetMapping("updateStation")
     public Response updateStation(@RequestParam(required = false) String nodeStation, @RequestParam(required = false) String stationType
             , @RequestParam(required = false) String stationLongitude, @RequestParam(required = false) String stationLatitude
-            , @RequestParam(required = false) String stationAddr, @RequestParam String stationId) {
-        return service.updateStation(nodeStation, stationType, stationLongitude, stationLatitude, stationAddr, stationId);
+            , @RequestParam(required = false) String stationAddr, @RequestParam int togetherFlag, @RequestParam String stationId) {
+        return service.updateStation(nodeStation, stationType, stationLongitude, stationLatitude, stationAddr, togetherFlag, stationId);
     }
 
     @ApiOperation(value = "缂栬緫鏈烘埧鍚�")
@@ -49,14 +61,27 @@
     public Response updateName(@RequestParam(required = false) String stationName, @RequestParam(required = false) String stationName1
             , @RequestParam(required = false) String stationName2, @RequestParam(required = false) String stationName3
             , @RequestParam(required = false) String stationName4, @RequestParam(required = false) String stationName5
-            , @RequestParam String stationId) {
-        return service.updateName(stationName, stationName1, stationName2, stationName3, stationName4, stationName5, stationId);
+            , @RequestParam(required = false) String stationIdTogether, @RequestParam String stationId) {
+        return service.updateName(stationName, stationName1, stationName2, stationName3, stationName4, stationName5, stationIdTogether, stationId);
     }
 
     @ApiOperation(value = "鍒犻櫎鎬荤珯鐐�")
     @GetMapping("deleteStation")
     public Response deleteStation(@RequestParam String stationId) {
         return service.deleteStation(stationId);
+    }
+
+    @GetMapping("searchAllStationName")
+    @ApiOperation("鏌ヨ绔欑偣鍚�")
+    public Response searchAllStationName(@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2,@RequestParam(required = false) String stationName5){
+        UserInf userInf = (UserInf) ActionUtil.getUser();
+        return service.searchAllStationName(userInf.getUId().intValue(), stationName1, stationName2, stationName5);
+    }
+
+    @GetMapping("getInfInStation")
+    @ApiOperation("鑾峰彇绔欑偣涓嬫墍鏈夎澶囦俊鎭�")
+    public Response getInfInStation(@RequestParam String stationId){
+        return service.getInfInStation(stationId);
     }
 
     @GetMapping("/searchAllStationName1")
@@ -133,4 +158,10 @@
     public Response searStationType() {
         return service.searStationType();
     }
+
+    @GetMapping("getTogetherStations")
+    @ApiOperation(value = "娣诲姞鍏宠仈鏃朵笅鎷夋樉绀�")
+    public Response getTogetherStations(@RequestParam(required = false) String stationName1, @RequestParam(required = false) String stationName2, @RequestParam(required = false) String stationName5) {
+        return service.getTogetherStations(stationName1, stationName2, stationName5);
+    }
 }

--
Gitblit v1.9.1