mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-14 06:50:09 +08:00
update
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
// 封装参数
|
// 封装参数
|
||||||
|
|||||||
Reference in New Issue
Block a user