mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user