Procházet zdrojové kódy

数据库连接修改

wangb před 1 týdnem
rodič
revize
b46784224a

+ 2 - 1
warning-web/src/main/resources/application.yaml

@@ -17,7 +17,8 @@ spring:
       enabled: true
   datasource:
     driver-class-name: org.postgresql.Driver
-    url: jdbc:postgresql://123.60.219.66:5432/wisdom_cs
+#    url: jdbc:postgresql://123.60.219.66:5432/wisdom_cs
+    url: jdbc:postgresql://123.60.219.66:5432/early_warning
     username: postgres
     password: gyeepd@123
 #    driver-class-name: com.mysql.cj.jdbc.Driver

+ 2 - 1
warning-web/src/main/resources/mappers-postgresql/Alertrule2Mapper.xml

@@ -98,7 +98,8 @@
 
     <select id="getAllByStationIdAndModelId2" parameterType="java.util.Map"
             resultMap="alertRule2ResultToPostgreSql">
-        select a.*, (case a.enabled   WHEN 't' then 1  when 'f' then 0  else 0 end) as specialenable from  ALERTRULE2 a
+--         select a.*, (case a.enabled   WHEN 't' then 1  when 'f' then 0  else 0 end) as specialenable from  ALERTRULE2 a
+        select a.* from  ALERTRULE2 a
         <where>
             1=1
             <if test="station !=null and station !=''">