This commit is contained in:
Lemon
2025-07-04 14:52:24 +08:00
parent c8187d57e6
commit ea62031179
2 changed files with 3 additions and 0 deletions

View File

@@ -193,6 +193,7 @@ public class QingHaiController extends ThirdPartyBaseController {
*/ */
@GetMapping("/pushOrderInfo/{orderCode}") @GetMapping("/pushOrderInfo/{orderCode}")
public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) { public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
logger.info("青海平台推送订单信息 params:{}", orderCode);
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
try { try {
String result = platformLogic.notificationChargeOrderInfo(orderCode); String result = platformLogic.notificationChargeOrderInfo(orderCode);

View File

@@ -583,6 +583,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
*/ */
@Override @Override
public String notificationChargeOrderInfo(String orderCode) { public String notificationChargeOrderInfo(String orderCode) {
logger.info("青海省平台 推送充电订单信息 start");
// 通过订单号查询订单信息 // 通过订单号查询订单信息
OrderVO orderVO = orderBasicInfoService.getChargeOrderInfoByOrderCode(orderCode); OrderVO orderVO = orderBasicInfoService.getChargeOrderInfoByOrderCode(orderCode);
BigDecimal startSoc = orderVO.getStartSoc() == null ? BigDecimal.ZERO : new BigDecimal(orderVO.getStartSoc()); BigDecimal startSoc = orderVO.getStartSoc() == null ? BigDecimal.ZERO : new BigDecimal(orderVO.getStartSoc());
@@ -643,6 +644,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
// 获取令牌 // 获取令牌
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret); String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
if (StringUtils.isBlank(token)) { if (StringUtils.isBlank(token)) {
logger.info("青海平台获取token为空");
return null; return null;
} }
// 封装参数 // 封装参数