1.国网上送相关功能上送

This commit is contained in:
cdf
2024-04-03 11:50:10 +08:00
parent a79e468d7d
commit 999cf1bc6f
3 changed files with 0 additions and 36 deletions

View File

@@ -30,18 +30,5 @@ public class PqTypicalSourceTaskRunner implements TimerTaskRunner {
throw new BusinessException("失败");
}
//月
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_MONTH_PATTERN));
String codeM = pqTypicalSourceFeignClient.send(param).getCode();
if(codeM.equals("A0002")){
throw new BusinessException("失败");
}
//年
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_YEAR_PATTERN));
String code2 = pqTypicalSourceFeignClient.send(param).getCode();
if(code2.equals("A0002")){
throw new BusinessException("失败");
}
}
}

View File

@@ -32,17 +32,5 @@ public class UploadGwTaskEvaluationRunner implements TimerTaskRunner {
}
//月
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_MONTH_PATTERN));
String codeM = uploadGwDataFeignClient.uploadEvaluationData(param).getCode();
if(codeM.equals("A0002")){
throw new BusinessException("失败");
}
//年
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_YEAR_PATTERN));
String code2 = uploadGwDataFeignClient.uploadEvaluationData(param).getCode();
if(code2.equals("A0002")){
throw new BusinessException("失败");
}
}
}

View File

@@ -31,16 +31,5 @@ public class UploadGwTaskRunner implements TimerTaskRunner {
throw new BusinessException("失败");
}
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_MONTH_PATTERN));
String codeM = uploadGwDataFeignClient.uploadPointStatisticalData(param).getCode();
if(codeM.equals("A0002")){
throw new BusinessException("失败");
}
//年
param.setTime(DateUtil.yesterday().toString(DatePattern.NORM_YEAR_PATTERN));
String codeY = uploadGwDataFeignClient.uploadPointStatisticalData(param).getCode();
if(codeY.equals("A0002")){
throw new BusinessException("失败");
}
}
}