Browse Source

fix:增加数据库多租户配置

dist.1.3.0
pref_mail@163.com 11 months ago
parent
commit
1d0f3401b1
  1. 2
      blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java
  2. 8
      blade-service/logpm-aftersales/src/main/resources/application-dev.yml
  3. 8
      blade-service/logpm-aftersales/src/main/resources/application-prod.yml
  4. 8
      blade-service/logpm-aftersales/src/main/resources/application-test.yml
  5. 8
      blade-service/logpm-basic/src/main/resources/application-dev.yml
  6. 8
      blade-service/logpm-basic/src/main/resources/application-prod.yml
  7. 8
      blade-service/logpm-basic/src/main/resources/application-test.yml
  8. 8
      blade-service/logpm-basicdata/src/main/resources/application-dev.yml
  9. 8
      blade-service/logpm-basicdata/src/main/resources/application-prod.yml
  10. 8
      blade-service/logpm-basicdata/src/main/resources/application-test.yml
  11. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java
  12. 8
      blade-service/logpm-distribution/src/main/resources/application-dev.yml
  13. 8
      blade-service/logpm-distribution/src/main/resources/application-prod.yml
  14. 8
      blade-service/logpm-distribution/src/main/resources/application-test.yml
  15. 8
      blade-service/logpm-factory/src/main/resources/application-dev.yml
  16. 8
      blade-service/logpm-factory/src/main/resources/application-prod.yml
  17. 8
      blade-service/logpm-factory/src/main/resources/application-test.yml
  18. 8
      blade-service/logpm-supervise/src/main/resources/application-dev.yml
  19. 8
      blade-service/logpm-supervise/src/main/resources/application-prod.yml
  20. 8
      blade-service/logpm-trunkline/src/main/resources/application-dev.yml
  21. 8
      blade-service/logpm-trunkline/src/main/resources/application-prod.yml
  22. 8
      blade-service/logpm-trunkline/src/main/resources/application-test.yml
  23. 8
      blade-service/logpm-warehouse/src/main/resources/application-dev.yml
  24. 8
      blade-service/logpm-warehouse/src/main/resources/application-prod.yml
  25. 8
      blade-service/logpm-warehouse/src/main/resources/application-test.yml

2
blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java

@ -9,7 +9,7 @@ public interface ModuleNameConstant {
/**
* 如果不需要 ""
*/
public static final String DEVAUTH ="";
public static final String DEVAUTH ="-pref";
/**
* 工厂对接服务名称

8
blade-service/logpm-aftersales/src/main/resources/application-dev.yml

@ -33,12 +33,12 @@ spring:
url: ${blade.datasource.aftersales.master.url}
username: ${blade.datasource.aftersales.master.username}
password: ${blade.datasource.aftersales.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.aftersales.slave.url}
username: ${blade.datasource.aftersales.slave.username}
password: ${blade.datasource.aftersales.slave.password}
url: ${blade.datasource.aftersales.627683.url}
username: ${blade.datasource.aftersales.627683.username}
password: ${blade.datasource.aftersales.627683.password}

8
blade-service/logpm-aftersales/src/main/resources/application-prod.yml

@ -25,7 +25,7 @@ spring:
url: ${blade.datasource.aftersales.master.url}
username: ${blade.datasource.aftersales.master.username}
password: ${blade.datasource.aftersales.master.password}
slave:
url: ${blade.datasource.aftersales.slave.url}
username: ${blade.datasource.aftersales.slave.username}
password: ${blade.datasource.aftersales.slave.password}
627683:
url: ${blade.datasource.aftersales.627683.url}
username: ${blade.datasource.aftersales.627683.username}
password: ${blade.datasource.aftersales.627683.password}

8
blade-service/logpm-aftersales/src/main/resources/application-test.yml

@ -25,7 +25,7 @@ spring:
url: ${blade.datasource.aftersales.master.url}
username: ${blade.datasource.aftersales.master.username}
password: ${blade.datasource.aftersales.master.password}
slave:
url: ${blade.datasource.aftersales.slave.url}
username: ${blade.datasource.aftersales.slave.username}
password: ${blade.datasource.aftersales.slave.password}
627683:
url: ${blade.datasource.aftersales.627683.url}
username: ${blade.datasource.aftersales.627683.username}
password: ${blade.datasource.aftersales.627683.password}

8
blade-service/logpm-basic/src/main/resources/application-dev.yml

@ -33,13 +33,13 @@ spring:
url: ${blade.datasource.basic.master.url}
username: ${blade.datasource.basic.master.username}
password: ${blade.datasource.basic.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basic.slave.url}
username: ${blade.datasource.basic.slave.username}
password: ${blade.datasource.basic.slave.password}
url: ${blade.datasource.basic.627683.url}
username: ${blade.datasource.basic.627683.username}
password: ${blade.datasource.basic.627683.password}

8
blade-service/logpm-basic/src/main/resources/application-prod.yml

@ -33,13 +33,13 @@ spring:
url: ${blade.datasource.basic.master.url}
username: ${blade.datasource.basic.master.username}
password: ${blade.datasource.basic.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basic.slave.url}
username: ${blade.datasource.basic.slave.username}
password: ${blade.datasource.basic.slave.password}
url: ${blade.datasource.basic.627683.url}
username: ${blade.datasource.basic.627683.username}
password: ${blade.datasource.basic.627683.password}

8
blade-service/logpm-basic/src/main/resources/application-test.yml

@ -33,13 +33,13 @@ spring:
url: ${blade.datasource.basic.master.url}
username: ${blade.datasource.basic.master.username}
password: ${blade.datasource.basic.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basic.slave.url}
username: ${blade.datasource.basic.slave.username}
password: ${blade.datasource.basic.slave.password}
url: ${blade.datasource.basic.627683.url}
username: ${blade.datasource.basic.627683.username}
password: ${blade.datasource.basic.627683.password}

8
blade-service/logpm-basicdata/src/main/resources/application-dev.yml

@ -33,15 +33,15 @@ spring:
url: ${blade.datasource.basicdata.master.url}
username: ${blade.datasource.basicdata.master.username}
password: ${blade.datasource.basicdata.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basicdata.slave.url}
username: ${blade.datasource.basicdata.slave.username}
password: ${blade.datasource.basicdata.slave.password}
url: ${blade.datasource.basicdata.627683.url}
username: ${blade.datasource.basicdata.627683.username}
password: ${blade.datasource.basicdata.627683.password}
xxl:
job:

8
blade-service/logpm-basicdata/src/main/resources/application-prod.yml

@ -33,15 +33,15 @@ spring:
url: ${blade.datasource.basicdata.master.url}
username: ${blade.datasource.basicdata.master.username}
password: ${blade.datasource.basicdata.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basicdata.slave.url}
username: ${blade.datasource.basicdata.slave.username}
password: ${blade.datasource.basicdata.slave.password}
url: ${blade.datasource.basicdata.627683.url}
username: ${blade.datasource.basicdata.627683.username}
password: ${blade.datasource.basicdata.627683.password}
xxl:
job:

8
blade-service/logpm-basicdata/src/main/resources/application-test.yml

@ -33,15 +33,15 @@ spring:
url: ${blade.datasource.basicdata.master.url}
username: ${blade.datasource.basicdata.master.username}
password: ${blade.datasource.basicdata.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basicdata.slave.url}
username: ${blade.datasource.basicdata.slave.username}
password: ${blade.datasource.basicdata.slave.password}
url: ${blade.datasource.basicdata.627683.url}
username: ${blade.datasource.basicdata.627683.username}
password: ${blade.datasource.basicdata.627683.password}
xxl:
job:

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

@ -1185,7 +1185,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
//订单自编号
HashSet<String> hashSet = new HashSet<>();
//车牌号拼接
StringBuilder vehicleNubs = new StringBuilder();
StringBuilder vehicleNubs = new StringBuilder();
//司机名称拼接
StringBuilder driverNames = new StringBuilder();
//查询根据预约ID查询这些预约的备货状态

8
blade-service/logpm-distribution/src/main/resources/application-dev.yml

@ -62,12 +62,12 @@ spring:
url: ${blade.datasource.distribution.master.url}
username: ${blade.datasource.distribution.master.username}
password: ${blade.datasource.distribution.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.distribution.slave.url}
username: ${blade.datasource.distribution.slave.username}
password: ${blade.datasource.distribution.slave.password}
url: ${blade.datasource.distribution.627683.url}
username: ${blade.datasource.distribution.627683.username}
password: ${blade.datasource.distribution.627683.password}

8
blade-service/logpm-distribution/src/main/resources/application-prod.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.distribution.master.url}
username: ${blade.datasource.distribution.master.username}
password: ${blade.datasource.distribution.master.password}
slave:
url: ${blade.datasource.distribution.slave.url}
username: ${blade.datasource.distribution.slave.username}
password: ${blade.datasource.distribution.slave.password}
627683:
url: ${blade.datasource.distribution.627683.url}
username: ${blade.datasource.distribution.627683.username}
password: ${blade.datasource.distribution.627683.password}
#rabbitmq配置
rabbitmq:
host: 172.16.128.145

8
blade-service/logpm-distribution/src/main/resources/application-test.yml

@ -60,12 +60,12 @@ spring:
url: ${blade.datasource.distribution.master.url}
username: ${blade.datasource.distribution.master.username}
password: ${blade.datasource.distribution.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.distribution.slave.url}
username: ${blade.datasource.distribution.slave.username}
password: ${blade.datasource.distribution.slave.password}
url: ${blade.datasource.distribution.627683.url}
username: ${blade.datasource.distribution.627683.username}
password: ${blade.datasource.distribution.627683.password}

8
blade-service/logpm-factory/src/main/resources/application-dev.yml

@ -60,14 +60,14 @@ spring:
url: ${blade.datasource.factory.master.url}
username: ${blade.datasource.factory.master.username}
password: ${blade.datasource.factory.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.factory.slave.url}
username: ${blade.datasource.factory.slave.username}
password: ${blade.datasource.factory.slave.password}
url: ${blade.datasource.factory.627683.url}
username: ${blade.datasource.factory.627683.username}
password: ${blade.datasource.factory.627683.password}

8
blade-service/logpm-factory/src/main/resources/application-prod.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.factory.master.url}
username: ${blade.datasource.factory.master.username}
password: ${blade.datasource.factory.master.password}
slave:
url: ${blade.datasource.factory.slave.url}
username: ${blade.datasource.factory.slave.username}
password: ${blade.datasource.factory.slave.password}
627683:
url: ${blade.datasource.factory.627683.url}
username: ${blade.datasource.factory.627683.username}
password: ${blade.datasource.factory.627683.password}
#rabbitmq配置
rabbitmq:
host: 172.16.128.145

8
blade-service/logpm-factory/src/main/resources/application-test.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.factory.master.url}
username: ${blade.datasource.factory.master.username}
password: ${blade.datasource.factory.master.password}
slave:
url: ${blade.datasource.factory.slave.url}
username: ${blade.datasource.factory.slave.username}
password: ${blade.datasource.factory.slave.password}
627683:
url: ${blade.datasource.factory.627683.url}
username: ${blade.datasource.factory.627683.username}
password: ${blade.datasource.factory.627683.password}
#rabbitmq配置
rabbitmq:
host: 192.168.2.110

8
blade-service/logpm-supervise/src/main/resources/application-dev.yml

@ -33,13 +33,13 @@ spring:
url: ${blade.datasource.supervise.master.url}
username: ${blade.datasource.supervise.master.username}
password: ${blade.datasource.supervise.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.supervise.slave.url}
username: ${blade.datasource.supervise.slave.username}
password: ${blade.datasource.supervise.slave.password}
url: ${blade.datasource.supervise.627683.url}
username: ${blade.datasource.supervise.627683.username}
password: ${blade.datasource.supervise.627683.password}

8
blade-service/logpm-supervise/src/main/resources/application-prod.yml

@ -33,13 +33,13 @@ spring:
url: ${blade.datasource.basic.master.url}
username: ${blade.datasource.basic.master.username}
password: ${blade.datasource.basic.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.basic.slave.url}
username: ${blade.datasource.basic.slave.username}
password: ${blade.datasource.basic.slave.password}
url: ${blade.datasource.basic.627683.url}
username: ${blade.datasource.basic.627683.username}
password: ${blade.datasource.basic.627683.password}

8
blade-service/logpm-trunkline/src/main/resources/application-dev.yml

@ -60,12 +60,12 @@ spring:
url: ${blade.datasource.trunkline.master.url}
username: ${blade.datasource.trunkline.master.username}
password: ${blade.datasource.trunkline.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.trunkline.slave.url}
username: ${blade.datasource.trunkline.slave.username}
password: ${blade.datasource.trunkline.slave.password}
url: ${blade.datasource.trunkline.627683.url}
username: ${blade.datasource.trunkline.627683.username}
password: ${blade.datasource.trunkline.627683.password}

8
blade-service/logpm-trunkline/src/main/resources/application-prod.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.trunkline.master.url}
username: ${blade.datasource.trunkline.master.username}
password: ${blade.datasource.trunkline.master.password}
slave:
url: ${blade.datasource.trunkline.slave.url}
username: ${blade.datasource.trunkline.slave.username}
password: ${blade.datasource.trunkline.slave.password}
627683:
url: ${blade.datasource.trunkline.627683.url}
username: ${blade.datasource.trunkline.627683.username}
password: ${blade.datasource.trunkline.627683.password}
#rabbitmq配置
rabbitmq:
host: 172.16.128.145

8
blade-service/logpm-trunkline/src/main/resources/application-test.yml

@ -25,7 +25,7 @@ spring:
url: ${blade.datasource.trunkline.master.url}
username: ${blade.datasource.trunkline.master.username}
password: ${blade.datasource.trunkline.master.password}
slave:
url: ${blade.datasource.trunkline.slave.url}
username: ${blade.datasource.trunkline.slave.username}
password: ${blade.datasource.trunkline.slave.password}
627683:
url: ${blade.datasource.trunkline.627683.url}
username: ${blade.datasource.trunkline.627683.username}
password: ${blade.datasource.trunkline.627683.password}

8
blade-service/logpm-warehouse/src/main/resources/application-dev.yml

@ -59,15 +59,15 @@ spring:
url: ${blade.datasource.warehouse.master.url}
username: ${blade.datasource.warehouse.master.username}
password: ${blade.datasource.warehouse.master.password}
slave:
627683:
druid:
#独立校验配置
validation-query: select 1
#oracle校验
#validation-query: select 1 from dual
url: ${blade.datasource.warehouse.slave.url}
username: ${blade.datasource.warehouse.slave.username}
password: ${blade.datasource.warehouse.slave.password}
url: ${blade.datasource.warehouse.627683.url}
username: ${blade.datasource.warehouse.627683.username}
password: ${blade.datasource.warehouse.627683.password}
xxl:
job:
accessToken: ''

8
blade-service/logpm-warehouse/src/main/resources/application-prod.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.warehouse.master.url}
username: ${blade.datasource.warehouse.master.username}
password: ${blade.datasource.warehouse.master.password}
slave:
url: ${blade.datasource.warehouse.slave.url}
username: ${blade.datasource.warehouse.slave.username}
password: ${blade.datasource.warehouse.slave.password}
627683:
url: ${blade.datasource.warehouse.627683.url}
username: ${blade.datasource.warehouse.627683.username}
password: ${blade.datasource.warehouse.627683.password}
#rabbitmq配置
rabbitmq:
host: 172.16.128.145

8
blade-service/logpm-warehouse/src/main/resources/application-test.yml

@ -25,10 +25,10 @@ spring:
url: ${blade.datasource.warehouse.master.url}
username: ${blade.datasource.warehouse.master.username}
password: ${blade.datasource.warehouse.master.password}
slave:
url: ${blade.datasource.warehouse.slave.url}
username: ${blade.datasource.warehouse.slave.username}
password: ${blade.datasource.warehouse.slave.password}
627683:
url: ${blade.datasource.warehouse.627683.url}
username: ${blade.datasource.warehouse.627683.username}
password: ${blade.datasource.warehouse.627683.password}
#rabbitmq配置
rabbitmq:
host: 192.168.2.110

Loading…
Cancel
Save