Lin Qilong 1 bulan lalu
induk
melakukan
9960a8f454

+ 2 - 2
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/controller/SCSSFMController.java

@@ -39,7 +39,7 @@ public class SCSSFMController extends BaseController {
         stationParams.put("userName", "shfbc");
 
         String stationResponseString = OkHttpUtils.executeRequest(
-                "http://49.4.2.185:2111/RiverStrongAPI2.0/StormSurgeForecast/StormSurge/BaseInfo/GetForecastStationInfos",
+                "http://169.97.234.19:2111/RiverStrongAPI2.0/StormSurgeForecast/StormSurge/BaseInfo/GetForecastStationInfos",
                 "GET",
                 stationParams,
                 null,
@@ -50,7 +50,7 @@ public class SCSSFMController extends BaseController {
         List<Map<String, Object>> stationList = (List<Map<String, Object>>) JSONPath.eval(stationResponseObj, "$.data");
 
         String responseString = OkHttpUtils.executeRequest(
-                "http://49.4.2.185:2111/RiverStrongAPI2.0/StormSurgeForecast/StormSurge/Calculate/GetCalResultsByStation",
+                "http://169.97.234.19:2111/RiverStrongAPI2.0/StormSurgeForecast/StormSurge/Calculate/GetCalResultsByStation",
                 "POST",
                 null,
                 JsonUtils.objectToJson(params),

+ 4 - 1
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/mapper/PtServiceMonitorMapper.java

@@ -1,10 +1,13 @@
 package com.ruoyi.interfaces.mapper;
 
+import com.ruoyi.common.annotation.DataSource;
+import com.ruoyi.common.enums.DataSourceType;
+
 import java.util.List;
 import java.util.Map;
 
 
-
+@DataSource(DataSourceType.SLAVE)
 public interface PtServiceMonitorMapper {
 
     List<Map<String, Object>> viewNumByCity();