mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -28,6 +28,7 @@ import com.jsowell.pile.vo.base.StationInfoVO;
|
|||||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||||
import com.jsowell.thirdparty.amap.service.AMapService;
|
import com.jsowell.thirdparty.amap.service.AMapService;
|
||||||
import com.jsowell.thirdparty.platform.service.impl.GuiZhouPlatformServiceImpl;
|
import com.jsowell.thirdparty.platform.service.impl.GuiZhouPlatformServiceImpl;
|
||||||
|
import com.jsowell.thirdparty.platform.service.impl.JiLinPlatformServiceImpl;
|
||||||
import com.jsowell.thirdparty.platform.service.impl.SiChuanPlatformServiceImpl;
|
import com.jsowell.thirdparty.platform.service.impl.SiChuanPlatformServiceImpl;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -295,6 +296,34 @@ public class JsowellTask {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定时任务,实时站点功率推送
|
||||||
|
*/
|
||||||
|
public void realTimePowerPush() {
|
||||||
|
/* String env = SpringUtils.getActiveProfile();
|
||||||
|
if (StringUtils.equalsIgnoreCase(env, "pre")) {
|
||||||
|
log.debug("PRE环境不执行");
|
||||||
|
return;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
String thirdPartyType = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode();
|
||||||
|
List<StationInfoVO> stationInfoVOS = thirdPartyStationRelationService.selectStationList(thirdPartyType);
|
||||||
|
|
||||||
|
// 获取站点列表
|
||||||
|
List<String> stationIdList = stationInfoVOS.stream()
|
||||||
|
.map(StationInfoVO::getStationId)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
JiLinPlatformServiceImpl jilinPlatformService = new JiLinPlatformServiceImpl();
|
||||||
|
try {
|
||||||
|
jilinPlatformService.notificationPowerInfo(stationIdList);
|
||||||
|
}catch (Exception e){
|
||||||
|
log.error("实时站点功率推送失败", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务, 订单分账
|
* 定时任务, 订单分账
|
||||||
* jsowellTask.processOrderSplitting()
|
* jsowellTask.processOrderSplitting()
|
||||||
|
|||||||
Reference in New Issue
Block a user