Commit fee920e4 authored by haoyanhui's avatar haoyanhui

方法整理&优化

parent 3dccc655
...@@ -27,6 +27,7 @@ import org.apache.commons.io.FileUtils; ...@@ -27,6 +27,7 @@ import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.io.*; import java.io.*;
...@@ -1811,7 +1812,7 @@ public class ManualToolService implements CommonSuperService { ...@@ -1811,7 +1812,7 @@ public class ManualToolService implements CommonSuperService {
System.out.println("All d3_logicerror_20191223() end."); System.out.println("All d3_logicerror_20191223() end.");
} }
@Async
public void newD3ReplaceReqId(String newD3FilePath, String newD3FileNames, String oldD3ReqIdFile, String mapNotEmptyFile) { public void newD3ReplaceReqId(String newD3FilePath, String newD3FileNames, String oldD3ReqIdFile, String mapNotEmptyFile) {
try{ try{
List<String> oldD3ReqIdFileList = ReadOrWriteTxt.readTxtList(oldD3ReqIdFile); List<String> oldD3ReqIdFileList = ReadOrWriteTxt.readTxtList(oldD3ReqIdFile);
...@@ -1828,13 +1829,12 @@ public class ManualToolService implements CommonSuperService { ...@@ -1828,13 +1829,12 @@ public class ManualToolService implements CommonSuperService {
log.info("newD3ReplaceReqId listSize: {} , mapSize: {} ", oldD3ReqIdFileList.size(), oldD3_reqIdMap.size()); log.info("newD3ReplaceReqId listSize: {} , mapSize: {} ", oldD3ReqIdFileList.size(), oldD3_reqIdMap.size());
oldD3ReqIdFileList = null; oldD3ReqIdFileList = null;
String[] all_id3_fileNames = newD3FileNames.split(","); String[] all_id3_fileNames = newD3FileNames.split(",");
List<String> d3lineList = null; List<String> d3lineList = null;
RepaymentInfoZhuDai repaymentLoanInfo = null; RepaymentInfoZhuDai repaymentLoanInfo = null;
for(String fileName : all_id3_fileNames){ for(String fileName : all_id3_fileNames){
log.info("THE FILENAME:"+fileName);
if(!newD3FilePath.endsWith("/") && !newD3FilePath.endsWith("\\")){ if(!newD3FilePath.endsWith("/") && !newD3FilePath.endsWith("\\")){
newD3FilePath = newD3FilePath + "/"; newD3FilePath = newD3FilePath + "/";
} }
...@@ -1894,7 +1894,7 @@ public class ManualToolService implements CommonSuperService { ...@@ -1894,7 +1894,7 @@ public class ManualToolService implements CommonSuperService {
} }
}catch (Exception e){ }catch (Exception e){
log.error("newD3ReplaceReqId Error",e); log.error("newD3ReplaceReqId 异常",e);
} }
log.info("All newD3ReplaceReqId() end."); log.info("All newD3ReplaceReqId() end.");
......
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