This commit is contained in:
Lemon
2024-01-05 10:40:16 +08:00
parent c72ff5263c
commit 17f32578d3
2 changed files with 16 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ import com.jsowell.thirdparty.lianlian.vo.LianLianResultVO;
import com.jsowell.thirdparty.nanrui.domain.*;
import com.jsowell.thirdparty.nanrui.service.NRService;
import com.jsowell.thirdparty.nanrui.util.QEncodeUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -61,6 +62,7 @@ import java.util.stream.Collectors;
* @Date 2023/9/26 9:20
*/
@Service
@Slf4j
public class NRServiceImpl implements NRService {
@Autowired
@@ -433,6 +435,14 @@ public class NRServiceImpl implements NRService {
}
// 根据交易流水号查询订单信息
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
log.info("江苏省平台查询订单信息: {}", orderBasicInfo);
if (orderBasicInfo == null) {
return null;
}
if (StringUtils.isBlank(DateUtils.formatDateTime(orderBasicInfo.getChargeStartTime()))) {
log.error("江苏省平台查询订单信息, 充电开始时间为空: {}", orderBasicInfo);
return null;
}
// 封装对象
NRConnectorStatusInfo nrConnectorStatusInfo = NRConnectorStatusInfo.builder()
.connectorID(pileConnectorCode)