From 43f4bf36266beeeb7415c633572a03bc63bb4748 Mon Sep 17 00:00:00 2001 From: Leon <3066758958@qq.com> Date: Thu, 9 Sep 2021 13:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=95=B0=E6=8D=AE=E6=BA=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/src/main/resources/application-local.yml | 7 ++++++- console/src/main/resources/application-qas.yml | 7 ++++++- .../mesnac/equip/mapper/EdcDataResourceMapper.java | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/console/src/main/resources/application-local.yml b/console/src/main/resources/application-local.yml index 6c9cb5ca..45b7ab84 100644 --- a/console/src/main/resources/application-local.yml +++ b/console/src/main/resources/application-local.yml @@ -10,6 +10,11 @@ spring: username: wip password: wip driver-class-name: oracle.jdbc.OracleDriver + ods: + url: jdbc:oracle:thin:@113.98.201.217:1521/ORD + username: wip + password: wip + driver-class-name: oracle.jdbc.OracleDriver druid: filters: stat,wall,log4j2 initial-size: 5 @@ -38,7 +43,7 @@ spring: merge-sql: true slow-sql-millis: 100 activemq: - enabled: false + enabled: true brokerUrl: tcp://localhost:61616?wireFormat.maxInactivityDuration=0 password: admin user: admin diff --git a/console/src/main/resources/application-qas.yml b/console/src/main/resources/application-qas.yml index fe7f399d..ef50d71c 100644 --- a/console/src/main/resources/application-qas.yml +++ b/console/src/main/resources/application-qas.yml @@ -7,8 +7,13 @@ spring: wip: driver-class-name: com.sap.db.jdbc.Driver jndi-name: jdbc/jts/wipPool + ods: + url: jdbc:oracle:thin:@172.16.251.133:1521/ORQ + username: ods + password: ods + driver-class-name: oracle.jdbc.OracleDriver activemq: - enabled: false + enabled: true brokerUrl: tcp://172.16.251.133:61616?wireFormat.maxInactivityDuration=0 password: admin user: admin diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/mapper/EdcDataResourceMapper.java b/equip/src/main/java/com/foreverwin/mesnac/equip/mapper/EdcDataResourceMapper.java index 8a6d9192..1c773a57 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/mapper/EdcDataResourceMapper.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/mapper/EdcDataResourceMapper.java @@ -1,5 +1,6 @@ package com.foreverwin.mesnac.equip.mapper; +import com.baomidou.dynamic.datasource.annotation.DS; import com.foreverwin.mesnac.equip.model.EdcDataResource; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; @@ -38,6 +39,7 @@ public interface EdcDataResourceMapper extends BaseMapper { * @param sqlStr * @return */ + @DS("ods") int insertBySql(@Param(value="sqlStr") String sqlStr); } \ No newline at end of file