mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-27 10:37:58 +08:00
update 报错未实现charge-common-api
This commit is contained in:
@@ -119,7 +119,7 @@ public class PileService {
|
|||||||
List<String> snList = null;
|
List<String> snList = null;
|
||||||
if (StringUtils.equals(SoftwareProtocolEnum.YOU_DIAN.getValue(), softwareProtocol)) {
|
if (StringUtils.equals(SoftwareProtocolEnum.YOU_DIAN.getValue(), softwareProtocol)) {
|
||||||
snList = snUtils.generateEBikeSN(dto.getNum());
|
snList = snUtils.generateEBikeSN(dto.getNum());
|
||||||
} else if (StringUtils.equals(SoftwareProtocolEnum.YUN_KUAI_CHONG.getValue(), softwareProtocol)){
|
} else if (StringUtils.equals(SoftwareProtocolEnum.YUN_KUAI_CHONGV150.getValue(), softwareProtocol)){
|
||||||
snList = snUtils.generateEVPileSN(dto.getNum());
|
snList = snUtils.generateEVPileSN(dto.getNum());
|
||||||
} else {
|
} else {
|
||||||
throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不正确"));
|
throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不正确"));
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ spring:
|
|||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
# 地址
|
||||||
host: 192.168.8.2
|
host: 192.168.0.32
|
||||||
# 端口,默认为6379
|
# 端口,默认为6379
|
||||||
port: 6379
|
port: 6379
|
||||||
# 数据库索引
|
# 数据库索引
|
||||||
@@ -36,7 +36,7 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://192.168.8.2:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://192.168.0.32:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: jsowell_dev
|
username: jsowell_dev
|
||||||
# url: jdbc:mysql://192.168.2.46:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
# url: jdbc:mysql://192.168.2.46:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
# username: jsowell_prd_copy
|
# username: jsowell_prd_copy
|
||||||
@@ -90,7 +90,7 @@ spring:
|
|||||||
|
|
||||||
# rabbitmq配置 dev
|
# rabbitmq配置 dev
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: 192.168.8.2
|
host: 192.168.0.32
|
||||||
port: 5672
|
port: 5672
|
||||||
username: admin
|
username: admin
|
||||||
password: admin
|
password: admin
|
||||||
@@ -259,13 +259,13 @@ dubbo:
|
|||||||
name: wcc-server
|
name: wcc-server
|
||||||
qosEnable: false
|
qosEnable: false
|
||||||
registry:
|
registry:
|
||||||
address: nacos://192.168.8.2:8848
|
address: nacos://192.168.0.32:8848
|
||||||
parameters:
|
parameters:
|
||||||
namespace: e328faaf-8516-42d0-817a-7406232b3581
|
namespace: e328faaf-8516-42d0-817a-7406232b3581
|
||||||
username: nacos
|
username: nacos
|
||||||
password: 79HMu!6nlOiLm^Q[
|
password: 79HMu!6nlOiLm^Q[
|
||||||
protocol:
|
protocol:
|
||||||
name: dubbo
|
name: dubbo
|
||||||
port: 20880
|
port: -1
|
||||||
consumer:
|
consumer:
|
||||||
check: false # 关键配置:启动时不检查提供者
|
check: false # 关键配置:启动时不检查提供者
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spring:
|
|||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
# 地址
|
||||||
host: 192.168.8.2
|
host: 192.168.0.32
|
||||||
# 端口,默认为6379
|
# 端口,默认为6379
|
||||||
port: 6379
|
port: 6379
|
||||||
# 数据库索引
|
# 数据库索引
|
||||||
@@ -35,9 +35,9 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://192.168.8.2:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://192.168.0.32:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: jsowell_dev
|
username: jsowell_dev
|
||||||
# url: jdbc:mysql://192.168.8.2:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
# url: jdbc:mysql://192.168.0.32:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
# username: jsowell_prd_copy
|
# username: jsowell_prd_copy
|
||||||
password: 123456
|
password: 123456
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
@@ -89,7 +89,7 @@ spring:
|
|||||||
|
|
||||||
# rabbitmq配置 sit
|
# rabbitmq配置 sit
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: 192.168.8.2
|
host: 192.168.0.32
|
||||||
port: 5672
|
port: 5672
|
||||||
username: admin
|
username: admin
|
||||||
password: admin
|
password: admin
|
||||||
@@ -257,7 +257,7 @@ dubbo:
|
|||||||
name: wcc-server
|
name: wcc-server
|
||||||
qosEnable: false
|
qosEnable: false
|
||||||
registry:
|
registry:
|
||||||
address: nacos://192.168.8.2:8848
|
address: nacos://192.168.0.32:8848
|
||||||
parameters:
|
parameters:
|
||||||
namespace: e328faaf-8516-42d0-817a-7406232b3581
|
namespace: e328faaf-8516-42d0-817a-7406232b3581
|
||||||
username: nacos
|
username: nacos
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ public class DirectRabbitConfig {
|
|||||||
// return new Queue(RabbitConstants.QUEUE_HEART_BEAT);
|
// return new Queue(RabbitConstants.QUEUE_HEART_BEAT);
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @Bean
|
@Bean
|
||||||
// public Queue realtimeDataQueue() {
|
public Queue realtimeDataQueue() {
|
||||||
// return new Queue(RabbitConstants.QUEUE_REALTIME_DATA);
|
return new Queue(RabbitConstants.QUEUE_REALTIME_DATA);
|
||||||
// }
|
}
|
||||||
//
|
//
|
||||||
// @Bean
|
// @Bean
|
||||||
// public Queue priceSenderQueue() {
|
// public Queue priceSenderQueue() {
|
||||||
@@ -88,10 +88,10 @@ public class DirectRabbitConfig {
|
|||||||
// return BindingBuilder.bind(heartBeatQueue()).to(exchange()).with(RabbitConstants.QUEUE_HEART_BEAT);
|
// return BindingBuilder.bind(heartBeatQueue()).to(exchange()).with(RabbitConstants.QUEUE_HEART_BEAT);
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @Bean
|
@Bean
|
||||||
// public Binding bindRealtimeData() {
|
public Binding bindRealtimeData() {
|
||||||
// return BindingBuilder.bind(realtimeDataQueue()).to(exchange()).with(RabbitConstants.QUEUE_REALTIME_DATA);
|
return BindingBuilder.bind(realtimeDataQueue()).to(exchange()).with(RabbitConstants.QUEUE_REALTIME_DATA);
|
||||||
// }
|
}
|
||||||
//
|
//
|
||||||
// @Bean
|
// @Bean
|
||||||
// public Binding bindPriceSender() {
|
// public Binding bindPriceSender() {
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ package com.jsowell.common.enums;
|
|||||||
* 软件协议enum
|
* 软件协议enum
|
||||||
*/
|
*/
|
||||||
public enum SoftwareProtocolEnum {
|
public enum SoftwareProtocolEnum {
|
||||||
YUN_KUAI_CHONG("1", "云快充"),
|
YUN_KUAI_CHONGV150("yunkuaichongV150", "云快充V1.5"),
|
||||||
YONG_LIAN("2", "永联"),
|
YUN_KUAI_CHONGV160("yunkuaichongV160", "云快充V1.6"),
|
||||||
YOU_DIAN("3", "友电"),
|
YONG_LIAN("yonglianV1", "永联"),
|
||||||
|
YOU_DIAN("youdianV1", "友电"),
|
||||||
;
|
;
|
||||||
|
|
||||||
private String value;
|
private String value;
|
||||||
|
|||||||
@@ -105,5 +105,10 @@ public class OrderBasicInfoApiImpl implements OrderBasicInfoApi {
|
|||||||
return orderBasicInfoService.tempGetOrderCodes(queryOrderDTO);
|
return orderBasicInfoService.tempGetOrderCodes(queryOrderDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OrderBasicInfo getOrderInfoByTransactionCode(String transactionCode) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.jsowell.common.service.thirdparty.domin.PileStationInfo;
|
|||||||
|
|
||||||
import com.jsowell.common.service.thirdparty.dto.QueryStationInfoDTO;
|
import com.jsowell.common.service.thirdparty.dto.QueryStationInfoDTO;
|
||||||
import com.jsowell.common.service.thirdparty.tempservice.PileStationInfoApi;
|
import com.jsowell.common.service.thirdparty.tempservice.PileStationInfoApi;
|
||||||
|
import com.jsowell.common.service.thirdparty.vo.PileStationVO;
|
||||||
import com.jsowell.common.service.thirdparty.vo.ThirdPartyStationInfoVO;
|
import com.jsowell.common.service.thirdparty.vo.ThirdPartyStationInfoVO;
|
||||||
import com.jsowell.pile.service.PileStationInfoService;
|
import com.jsowell.pile.service.PileStationInfoService;
|
||||||
|
|
||||||
@@ -51,4 +52,14 @@ public class PileStationInfoApiImpl implements PileStationInfoApi {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PileStationVO getStationInfoByPileConnectorCode(String pileConnectorCode) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PileStationVO getStationInfo(String stationId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import org.apache.dubbo.config.annotation.DubboService;
|
|||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@DubboService(group = "thirdparty", version = "1.0.0")
|
@DubboService(group = "thirdparty", version = "1.0.0")
|
||||||
@@ -68,4 +69,9 @@ public class ThirdpartySecretInfoApiImpl implements ThirdpartySecretInfoApi {
|
|||||||
}
|
}
|
||||||
return stationInfoVOList;
|
return stationInfoVOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ThirdPartySecretInfoVO> queryStationToPlatformList(String stationId) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user