mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update 青海平台Service
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -408,6 +408,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
public String notificationPowerInfo(List<String> stationIds) {
|
||||
SupStationPowerInfo supStationPowerInfo = null;
|
||||
List<SupStationPowerInfo> list = new ArrayList<>();
|
||||
String dateTimeNow = DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS);
|
||||
|
||||
List<SupStationPowerInfo
|
||||
.EquipmentPowerInfo> 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());
|
||||
|
||||
Reference in New Issue
Block a user