1.国网上送相关功能上送
This commit is contained in:
@@ -30,18 +30,5 @@ public class PqTypicalSourceTaskRunner implements TimerTaskRunner {
|
|||||||
throw new BusinessException("失败");
|
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("失败");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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("失败");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,16 +31,5 @@ public class UploadGwTaskRunner implements TimerTaskRunner {
|
|||||||
throw new BusinessException("失败");
|
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("失败");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user