寄点电站数据融合
This commit is contained in:
@ -267,4 +267,30 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -72,5 +72,9 @@ 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);
|
||||
}
|
||||
|
||||
@ -111,4 +111,16 @@ 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user