diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/qinghai/QingHaiController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/qinghai/QingHaiController.java index dfdcc255e..3192c89ae 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/qinghai/QingHaiController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/qinghai/QingHaiController.java @@ -200,4 +200,22 @@ public class QingHaiController extends BaseController { return response; } + /** + * 推送订单 + * @param orderCode + * @return + */ + @GetMapping("/pushOrderInfo/{orderCode}") + public RestApiResponse pushOrderInfo(@PathVariable("orderCode") String orderCode) { + RestApiResponse response = null; + try { + String result = qingHaiPlatformServiceImpl.notificationChargeOrderInfo(orderCode); + response = new RestApiResponse<>(result); + }catch (Exception e) { + logger.error("青海平台推送订单信息 error", e); + } + logger.info("青海平台推送订单信息 result:{}", response); + return response; + } + } diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java index 9ede25d65..4fcf453c8 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java @@ -408,6 +408,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService { public String notificationPowerInfo(List stationIds) { SupStationPowerInfo supStationPowerInfo = null; List list = new ArrayList<>(); + String dateTimeNow = DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS); List supPileInfoList = null; @@ -426,6 +427,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService { supStationPowerInfo.setOperatorID(Constants.OPERATORID_JIANG_SU); supStationPowerInfo.setStationId(stationId); + supStationPowerInfo.setDataTime(dateTimeNow); supStationPowerInfo.setStationClassification(Constants.one); // 查询运营商基本信息 PileMerchantInfoVO pileMerchantInfoVO = pileMerchantInfoService.queryMerchantInfoByStationId(stationId); @@ -455,7 +457,6 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService { throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL); } supPileInfoList = new ArrayList<>(); - String dateTimeNow = DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS); for (PileBasicInfo pileBasicInfo : pileList) { supPileInfo = new SupStationPowerInfo.EquipmentPowerInfo(); supPileInfo.setEquipmentID(pileBasicInfo.getSn());