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

日志提示

parent 9db0911c
...@@ -877,28 +877,27 @@ public class BaiHangFileReportService { ...@@ -877,28 +877,27 @@ public class BaiHangFileReportService {
StringBuffer sBuffer = null; StringBuffer sBuffer = null;
List<String> fileNameList = Arrays.asList(singleFileName); List<String> fileNameList = Arrays.asList(singleFileName);
for (String fileName : fileNameList) { for (String fileName : fileNameList) {
if (StringUtils.isNotBlank(fileName)) { subFile = new File(HOST_PATH + fileName.replace("-R.cry",".txt"));
subFile = new File(HOST_PATH + fileName.replace("-R.cry",".txt")); List<String> dataList = FileUtils.readLines(subFile, "utf-8");
List<String> dataList = FileUtils.readLines(subFile, "utf-8"); List<String> fieldNameList = Arrays.asList(fieldNames.split(","));
List<String> fieldNameList = Arrays.asList(fieldNames.split(",")); for (String dataInfo : dataList) {
for (String dataInfo : dataList) { Boolean noError = Boolean.TRUE;
Boolean noError = Boolean.TRUE; sBuffer = new StringBuffer(fileName).append(",");
sBuffer = new StringBuffer(fileName).append(","); if ("A1".equalsIgnoreCase(type) || "A1Refuse".equalsIgnoreCase(type)) {
if ("A1".equalsIgnoreCase(type) || "A1Refuse".equalsIgnoreCase(type)) { ApplyLoanInfoZhuDai applyLoanInfoZhuDai = JSONObject.parseObject(dataInfo, ApplyLoanInfoZhuDai.class);
ApplyLoanInfoZhuDai applyLoanInfoZhuDai = JSONObject.parseObject(dataInfo, ApplyLoanInfoZhuDai.class); log.info("数据 {} 正在校验...",applyLoanInfoZhuDai.getApplyId());
sBuffer.append(applyLoanInfoZhuDai.getApplyId()).append(","); sBuffer.append(applyLoanInfoZhuDai.getApplyId()).append(",");
for (String fieldName : fieldNameList) { for (String fieldName : fieldNameList) {
Field declaredField = ApplyLoanInfoZhuDai.class.getDeclaredField(fieldName); Field declaredField = ApplyLoanInfoZhuDai.class.getDeclaredField(fieldName);
Object property = BeanUtil.getProperty(applyLoanInfoZhuDai, fieldName); Object property = BeanUtil.getProperty(applyLoanInfoZhuDai, fieldName);
if (Objects.isNull(property) || Objects.isNull(declaredField)) { if (Objects.isNull(property) || Objects.isNull(declaredField)) {
noError = Boolean.FALSE; noError = Boolean.FALSE;
sBuffer.append(fieldName).append(","); sBuffer.append(fieldName).append(",");
}
} }
} }
if (!noError) { }
checkResult.add(sBuffer.append(System.getProperty("line.separator")).toString()); if (!noError) {
} checkResult.add(sBuffer.append(System.getProperty("line.separator")).toString());
} }
} }
} }
......
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