Commit 6d8e6f7e authored by 陈宏杰's avatar 陈宏杰

数据头追加

parent 996b4b35
...@@ -926,7 +926,8 @@ public class BaiHangFileReportService { ...@@ -926,7 +926,8 @@ public class BaiHangFileReportService {
bos = new FileWriter(HOST_PATH + targetFileName); bos = new FileWriter(HOST_PATH + targetFileName);
while(null != (dataStr = bis.readLine())) { while(null != (dataStr = bis.readLine())) {
if (StringUtils.isBlank(dataStr) || StringUtils.equals(dataStr,"#applyInfo") || StringUtils.equals(dataStr,"#singleLoanAccountInfo") || StringUtils.equals(dataStr,"#singleLoanRepayInfo")) { if (StringUtils.isBlank(dataStr) || StringUtils.equals(dataStr,"#applyInfo") || StringUtils.equals(dataStr,"#singleLoanAccountInfo") || StringUtils.equals(dataStr,"#singleLoanRepayInfo")) {
log.error("文件数据异常:{}",dataStr); bos.write(dataStr + System.getProperty("line.separator"));
log.error("文件数据可能异常:{}",dataStr);
} else { } else {
Boolean noError = Boolean.TRUE; Boolean noError = Boolean.TRUE;
ApplyLoanInfoZhuDai applyLoanInfoZhuDai = JSONUtil.toBean(dataStr, ApplyLoanInfoZhuDai.class); ApplyLoanInfoZhuDai applyLoanInfoZhuDai = JSONUtil.toBean(dataStr, ApplyLoanInfoZhuDai.class);
......
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