Commit c098b7a8 authored by 陈宏杰's avatar 陈宏杰

对象置空

parent c0329b15
...@@ -28,8 +28,6 @@ import org.springframework.stereotype.Service; ...@@ -28,8 +28,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.io.File; import java.io.File;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
...@@ -409,6 +407,8 @@ public class BaiHangFileReportService { ...@@ -409,6 +407,8 @@ public class BaiHangFileReportService {
log.info("量化派助贷TO百行报送(D3)-逾期记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS)); log.info("量化派助贷TO百行报送(D3)-逾期记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS));
} catch (Exception e) { } catch (Exception e) {
log.error("量化派助贷TO百行报送(D3)-逾期记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e); log.error("量化派助贷TO百行报送(D3)-逾期记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e);
} finally {
clear(repaymentLoanInfos,recordList,reportList);
} }
} }
...@@ -481,6 +481,8 @@ public class BaiHangFileReportService { ...@@ -481,6 +481,8 @@ public class BaiHangFileReportService {
log.info("量化派助贷TO百行报送(D3)-每30天逾期记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS)); log.info("量化派助贷TO百行报送(D3)-每30天逾期记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS));
} catch (Exception e) { } catch (Exception e) {
log.error("量化派助贷TO百行报送(D3)-每30天逾期记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e); log.error("量化派助贷TO百行报送(D3)-每30天逾期记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e);
} finally {
clear(idInfos,repaymentLoanInfos,tempRepaymentLoanInfos,recordList,reportList);
} }
} }
...@@ -535,6 +537,16 @@ public class BaiHangFileReportService { ...@@ -535,6 +537,16 @@ public class BaiHangFileReportService {
log.info("量化派助贷TO百行报送(D3)-还款记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS)); log.info("量化派助贷TO百行报送(D3)-还款记录完成,开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS));
} catch (Exception e) { } catch (Exception e) {
log.error("量化派助贷TO百行报送(D3)-还款记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e); log.error("量化派助贷TO百行报送(D3)-还款记录处理异常,开始时间: {} , 结束时间: {} ", startTime, endTime, e);
} finally {
clear(repaymentLoanInfos,recordList,reportList);
}
}
private void clear(Collection ... collections) {
for (Collection col : collections) {
if (!CollectionUtils.isEmpty(col)) {
col.clear();
}
} }
} }
......
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