Commit 2f56577b authored by 陈宏杰's avatar 陈宏杰

日志提示

parent 9db0911c
......@@ -877,7 +877,6 @@ public class BaiHangFileReportService {
StringBuffer sBuffer = null;
List<String> fileNameList = Arrays.asList(singleFileName);
for (String fileName : fileNameList) {
if (StringUtils.isNotBlank(fileName)) {
subFile = new File(HOST_PATH + fileName.replace("-R.cry",".txt"));
List<String> dataList = FileUtils.readLines(subFile, "utf-8");
List<String> fieldNameList = Arrays.asList(fieldNames.split(","));
......@@ -886,6 +885,7 @@ public class BaiHangFileReportService {
sBuffer = new StringBuffer(fileName).append(",");
if ("A1".equalsIgnoreCase(type) || "A1Refuse".equalsIgnoreCase(type)) {
ApplyLoanInfoZhuDai applyLoanInfoZhuDai = JSONObject.parseObject(dataInfo, ApplyLoanInfoZhuDai.class);
log.info("数据 {} 正在校验...",applyLoanInfoZhuDai.getApplyId());
sBuffer.append(applyLoanInfoZhuDai.getApplyId()).append(",");
for (String fieldName : fieldNameList) {
Field declaredField = ApplyLoanInfoZhuDai.class.getDeclaredField(fieldName);
......@@ -901,7 +901,6 @@ public class BaiHangFileReportService {
}
}
}
}
if (!CollectionUtils.isEmpty(checkResult)) {
File file = new File(HOST_PATH + type + "_fileDataCheck_" + DateUtils.formatDate(new Date(),"yyyyMMddHHmmsss") + ".txt");
FileUtils.writeLines(file,checkResult,Boolean.TRUE);
......
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