update pre数据库测试

This commit is contained in:
YAS\29473
2025-07-29 09:07:24 +08:00
parent 490d695aef
commit f2e14591d3
2 changed files with 21 additions and 12 deletions

View File

@@ -8,17 +8,17 @@ spring:
# redis 配置 # redis 配置
redis: redis:
# 地址 # 地址
host: r-uf6k0uet7mihr5z78f.redis.rds.aliyuncs.com # host: r-uf6k0uet7mihr5z78f.redis.rds.aliyuncs.com
# host: 106.14.94.149 host: 106.14.94.149
# 端口默认为6379 # 端口默认为6379
port: 6379 port: 6379
# 数据库索引 # 数据库索引
database: 0 database: 0
# 账号 # 账号
username: jsowell # username: jsowell
# 密码 # 密码
password: js@160829 # password: js@160829
# password: js160829 password: js160829
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
lettuce: lettuce:
@@ -38,12 +38,12 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://rm-uf6ra51u33dc3798l.mysql.rds.aliyuncs.com:3306/jsowell_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 # url: jdbc:mysql://rm-uf6ra51u33dc3798l.mysql.rds.aliyuncs.com:3306/jsowell_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: jsowell # username: jsowell
password: js@160829 # password: js@160829
# url: jdbc:mysql://106.14.94.149:3306/jsowell_pre?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://106.14.94.149:3306/jsowell_pre?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: jsowell_pre username: jsowell_pre
# password: Js@160829 password: Js@160829
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

View File

@@ -438,9 +438,18 @@ public class CommonService {
NotificationDTO dto = new NotificationDTO(); NotificationDTO dto = new NotificationDTO();
dto.setStationId(stationId); dto.setStationId(stationId);
dto.setPileConnectorCode(pileConnectorCode); dto.setPileConnectorCode(pileConnectorCode);
dto.setStatus(changedStatus);
dto.setPlatformType(thirdPartySecretInfoVO.getPlatformType()); dto.setPlatformType(thirdPartySecretInfoVO.getPlatformType());
if(thirdPartySecretInfoVO.getPlatformType().equals(ThirdPlatformTypeEnum.CHANG_ZHOU_PLATFORM.getTypeCode())
){
//无须转换枪口状态
dto.setStatus(connectorStatus);
log.info("枪口状态"+connectorStatus);
}else{
dto.setStatus(changedStatus);
log.info("转换的枪口状态"+changedStatus);
}
// 先推送站点状态 // 先推送站点状态
notificationService.notificationStationStatus(dto); notificationService.notificationStationStatus(dto);