Commit 4eaa531e authored by 郝彦辉's avatar 郝彦辉

修改日志输出

parent 762e934e
......@@ -607,7 +607,7 @@ public class BaiHangZhuDaiService {
FileUtils.write(new File(fileName+"_01.txt"), JSON.toJSONString(applyLoanInfo)+"\r\n", "UTF-8", true);
//脱敏数据写一份
testTuoMinFileWrite(fileName+"_TEST_01.txt",applyLoanInfo,null,null);
testTuoMinFileWrite(fileName+"_TEST_01.txt",starTime,applyLoanInfo,null,null);
} catch (Exception e) {
log.error("申请存量数据处理异常, startTime: {} , endTime: {} ",starTime, endTime, e);
......@@ -678,7 +678,6 @@ public class BaiHangZhuDaiService {
loanInfozdList.addAll(loanInfozdListLh);
}
int listSize = loanInfozdList!=null ? loanInfozdList.size(): 0;
log.info("All放款存量数据查询结束, listSize : {} , startTime: {} , endTime: {} , 耗时 : {} ", listSize, starTime, endTime, ((System.currentTimeMillis()-sUtc1)/1000)+".s");
......@@ -692,7 +691,7 @@ public class BaiHangZhuDaiService {
if(relationID.startsWith("lhp_")){
loanInfozd_tmp.setRelationID(relationID.replace("lhp_","L"));
}else{
log.error("量化派助贷TO百行报送-放款返回结果不正确, 发现其他类型的relationID并且长度大于36,relationID="+relationID+",loanId="+loanInfozd_tmp.getLoanId());
log.error("量化派助贷TO百行报送-放款返回结果不正确, 发现其他类型的relationID并且长度大于36,relationID: {} , startTime: {} , endTime: {} , loanId: {} ", relationID, starTime, endTime, loanInfozd_tmp.getLoanId());
continue;
}
}
......@@ -716,7 +715,7 @@ public class BaiHangZhuDaiService {
FileUtils.write(new File(fileName+"_01.txt"), JSON.toJSONString(loanInfoZhuDaiVo)+"\r\n", "UTF-8", true);
//脱敏数据写一份
testTuoMinFileWrite(fileName+"_TEST_01.txt",null,loanInfoZhuDaiVo,null);
testTuoMinFileWrite(fileName+"_TEST_01.txt",starTime,null,loanInfoZhuDaiVo,null);
} catch (Exception e) {
log.error("放款存量数据处理异常, startTime: {} , endTime: {} , recordId: {} , loanId: {} ",starTime, endTime, id, loanInfoZhuDaiVo.getLoanId(), e);
......@@ -813,7 +812,7 @@ public class BaiHangZhuDaiService {
FileUtils.write(new File(fileName+"_01.txt"), JSON.toJSONString(repaymentInfo)+"\r\n", "UTF-8", true);
//脱敏数据写一份
testTuoMinFileWrite(fileName+"_TEST_01.txt",null,null,repaymentInfo);
testTuoMinFileWrite(fileName+"_TEST_01.txt",starTime,null,null,repaymentInfo);
}
} catch (Exception e) {
......@@ -1261,7 +1260,7 @@ public class BaiHangZhuDaiService {
}
//用户三要素脱敏后数据写一份
private void testTuoMinFileWrite(String fileName, ApplyLoanInfoZhuDai bean_a1, LoanInfoZhuDaiVo bean_d2, RepaymentInfoZhuDai bean_d3) {
private void testTuoMinFileWrite(String fileName,String startDate, ApplyLoanInfoZhuDai bean_a1, LoanInfoZhuDaiVo bean_d2, RepaymentInfoZhuDai bean_d3) {
String pid = null, mapVal = null, jsonContext = "";
try {
if (bean_a1 != null) {
......@@ -1274,7 +1273,7 @@ public class BaiHangZhuDaiService {
bean_a1.setName(arry[2]);
} else {
//addUserMap(pid,mobile,name);
log.warn(" TEST FILE A1 发现其他不在字典中用户, pid: {} ", pid);
log.warn(" TEST FILE A1 发现其他不在字典中用户, startDate: {} , pid: {} ", startDate, pid);
}
jsonContext = JSON.toJSONString(bean_a1);
......@@ -1288,7 +1287,7 @@ public class BaiHangZhuDaiService {
bean_d2.setName(arry[2]);
} else {
//addUserMap(pid,mobile,name);
log.warn(" TEST FILE D2 发现其他不在字典中用户, pid: {} ", pid);
log.warn(" TEST FILE D2 发现其他不在字典中用户, startDate: {} , pid: {} ", startDate, pid);
}
jsonContext = JSON.toJSONString(bean_d2);
......@@ -1302,19 +1301,19 @@ public class BaiHangZhuDaiService {
bean_d3.setName(arry[2]);
} else {
//addUserMap(pid,mobile,name);
log.warn(" TEST FILE D3 发现其他不在字典中用户, pid: {} ", pid);
log.warn(" TEST FILE D3 发现其他不在字典中用户, startDate: {} , pid: {} ", startDate, pid);
}
jsonContext = JSON.toJSONString(bean_d3);
} else {
log.error(" TEST FILE testTuoMinFileWrite()实体对象都为空.");
log.error(" TEST FILE testTuoMinFileWrite()实体对象都为空, startDate: {} ",startDate);
return;
}
FileUtils.write(new File(fileName), jsonContext+"\r\n", "UTF-8", true);
} catch (Exception e) {
log.error(" TEST FILE testTuoMinFileWrite()写入文件异常, pid: {} ", pid, e);
log.error(" TEST FILE testTuoMinFileWrite()写入文件异常, startDate: {} , pid: {} ", startDate, pid, e);
}
}
......
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