修改护理单元同步功能

This commit is contained in:
yangjun 2025-08-04 15:11:53 +08:00
parent f77947818d
commit 6904224122
5 changed files with 25 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class NuBaseInfoMQListener {
orgName = deptInfo.getString("name"); orgName = deptInfo.getString("name");
List<NuBaseInfo> syncList = ListUtil.of(); List<NuBaseInfo> syncList = ListUtil.of();
try { try {
syncList = baseInfoService.getSynchronized("multi-datasource1", orgCode); syncList = baseInfoService.getSynchronized("multi-nudevops", orgCode);
baseInfoService.batchInsert(syncList); baseInfoService.batchInsert(syncList);
} catch (Exception e) { } catch (Exception e) {
StatusMQDto statusMQDto = new StatusMQDto(); StatusMQDto statusMQDto = new StatusMQDto();

View File

@ -191,6 +191,12 @@ spring:
username: nu_sys username: nu_sys
password: nu_sys password: nu_sys
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-nudevops:
url: jdbc:mysql://192.168.2.199:3306/nu_devops?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: nu_sys
password: nu_sys
driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0

View File

@ -191,6 +191,12 @@ spring:
username: fw8864sshdang username: fw8864sshdang
password: uGDBkM25I6nZCNM2 password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-nudevops:
url: jdbc:mysql://mysql8-prod:3306/nu_devops?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: fw8864sshdang
password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-试验田 TODO 需要创建对应只读账号 不同服务器间需要更改ip端口 另外注意是否采用了VPC # 多数据源配置-试验田 TODO 需要创建对应只读账号 不同服务器间需要更改ip端口 另外注意是否采用了VPC
# nuro: # nuro:
# url: jdbc:mysql://mysql8-prod:3306/nursing_unit?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai # url: jdbc:mysql://mysql8-prod:3306/nursing_unit?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai

View File

@ -197,6 +197,12 @@ spring:
username: fw8864sshdang username: fw8864sshdang
password: uGDBkM25I6nZCNM2 password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-nudevops:
url: jdbc:mysql://mysql8-prod:3306/nu_devops?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: fw8864sshdang
password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0

View File

@ -197,6 +197,12 @@ spring:
username: fw8864sshdang username: fw8864sshdang
password: uGDBkM25I6nZCNM2 password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-nudevops:
url: jdbc:mysql://mysql8-prod:3306/nu_devops?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: fw8864sshdang
password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0