Commit 78039d56 authored by wangpeng's avatar wangpeng

预估数据生成调优-- fxj

parent bb9ed9d4
......@@ -2210,7 +2210,11 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
// 并行处理,确保线程安全性
batch.parallelStream().forEach(socialFundInfo -> {
try {
everyMonthCreateForecastLibaryCore(payMonth, socialFundInfo,mapSelectVo);
// 异常场景:有公积金无社保数据,可通过身份证或结算主体页面重新生成数据
String deptNo = null == socialFundInfo.getSettleDomainCode()?socialFundInfo.getSettleDomainCodeFund():socialFundInfo.getSettleDomainCode();
if (Common.isNotNull(deptNo) && null != mapSelectVo.get(deptNo)){
everyMonthCreateForecastLibaryCore(payMonth, socialFundInfo,mapSelectVo);
}
} catch (Exception e) {
// 捕获并记录单个处理中的异常,避免影响其他数据
log.error("Error processing socialFundInfo: " + socialFundInfo.getId() + ", Exception: " + e.getMessage());
......@@ -2345,7 +2349,6 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
List<TForecastLibrary> libraryFundInfoListSocial = new ArrayList<>();
List<TForecastLibrary> libraryFundInfoListFund = new ArrayList<>();
//社保收入
//Map<String,TSettleDomainSelectVo> mapSelectVo = this.getSelectVoMap();
String redisKey = String.valueOf(UUID.randomUUID()).replaceAll("-", "") + "_incomePush";
if (Common.isNotNull(socialFundInfo.getSocialId())
&& CommonConstants.FOUR_STRING.equals(socialFundInfo.getSocialStatus())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment