中车、寄点站点融合

This commit is contained in:
2026-04-14 17:33:01 +08:00
parent 21a3c2f9cf
commit c63b92481b
19 changed files with 1555 additions and 0 deletions

View File

@ -231,4 +231,55 @@ public class JobHandler {
log.info("jobUpdateMessageInfo end !");
return ReturnT.SUCCESS;
}
/**
* 寄点-站点监控数据
* @param param
* @return
*/
@XxlJob("jobCacheShipEnergyMainInfo")
public ReturnT<String> jobCacheShipEnergyMainInfo(String param){
log.info("jobCacheShipEnergyMainInfo start !");
businessFeignClient.jobCacheShipEnergyMainInfo();
log.info("jobCacheShipEnergyMainInfo end !");
return ReturnT.SUCCESS;
}
/**
* 寄点-站点充放电数据
* @param param
* @return
*/
@XxlJob("jobCacheShipEleIncome")
public ReturnT<String> jobCacheShipEleIncome(String param){
log.info("jobCacheShipEnergyEle start !");
businessFeignClient.jobCacheShipEleIncome(param);
log.info("jobCacheShipEnergyEle end !");
return ReturnT.SUCCESS;
}
/**
* 中车-站点收益、充放电数据 - 昨日
* @param param
* @return
*/
@XxlJob("jobBoulderEleIncome")
public ReturnT<String> jobBoulderEleIncome(String param){
log.info("jobCacheShipEnergyEle start !");
businessFeignClient.jobBoulderEleIncome(param);
log.info("jobCacheShipEnergyEle end !");
return ReturnT.SUCCESS;
}
/**
* 中车-站点收益、充放电数据 - 今日
* @param param
* @return
*/
@XxlJob("jobBoulderEleIncomeToday")
public ReturnT<String> jobBoulderEleIncomeToday(String param){
log.info("jobCacheShipEnergyEle start !");
businessFeignClient.jobBoulderEleIncome(DateUtil.formatDate(new Date()));
log.info("jobCacheShipEnergyEle end !");
return ReturnT.SUCCESS;
}
}

View File

@ -67,4 +67,13 @@ public interface BusinessFeignClient {
@PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.BUSINESS + "messageInfo/jobUpdateMessageInfo")
void jobUpdateMessageInfo();
@PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.BUSINESS + "shipEnergyStation/getMainTotal")
void jobCacheShipEnergyMainInfo();
@PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.BUSINESS + "shipEnergyStation/getStationIncomeHis")
void jobCacheShipEleIncome(@RequestBody String dateTime);
@PostMapping(value = ContextConstant.ROOT_CONTEXT + ContextConstant.BUSINESS + "boulderEnergyStation/getBoulderEleIncome")
void jobBoulderEleIncome(@RequestBody String dateTime);
}

View File

@ -99,4 +99,22 @@ public class BusinessFeignClientFallback implements BusinessFeignClient {
throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
}
@Override
public void jobCacheShipEnergyMainInfo() {
log.error("BusinessFeignClient.jobCacheShipEnergyMainInfo error!");
throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
}
@Override
public void jobCacheShipEleIncome(String dateTime) {
log.error("BusinessFeignClient.jobCacheShipEleIncome error!");
throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
}
@Override
public void jobBoulderEleIncome(String dateTime) {
log.error("BusinessFeignClient.jobBoulderEleIncome error!");
throw new BusinessException(BaseResponseCode.FEIGN_CALL_FAIL);
}
}