Commit b7f0728d authored by 郝彦辉's avatar 郝彦辉

完善日志输出

parent e2e34483
......@@ -102,7 +102,7 @@ public class BlackListManagerServiceImpl implements IBlackListManagerService {
List<String> errorInsertList = new ArrayList<>();
List<String> errorUpdateList = new ArrayList<>();
//uuid@@@@@@name@@@@@@phone_no@@@@@@id_no@@@@@@major_type@@@@@@type@@@@@@black_level@@@@@@join_black_reason
try {
List<String> list = FileUtils.readLines(new File(sourcePath), "utf-8");
// `name`,`phone_no`,`id_no`,`type` 唯一索引
......
......@@ -1813,12 +1813,13 @@ public class BlackListToolsManagerServiceImpl implements IBlackListToolsManagerS
blackGreyObj.setUpdatedAt(updatedAt);
}
BlackGreyListQueryVo queryResultParam = BlackGreyListQueryVo.builder().name(blackGreyObj.getName()).idNo(blackGreyObj.getIdNo()).phoneNo(blackGreyObj.getPhoneNo())
BlackGreyListQueryVo queryDetailsParam = BlackGreyListQueryVo.builder().name(blackGreyObj.getName()).idNo(blackGreyObj.getIdNo()).phoneNo(blackGreyObj.getPhoneNo())
.type(blackGreyObj.getType()).status(0).build();
//List<BlackGreyListDetails> detailsList = blackGreyListMapper.findBlackGreyListDetails(queryResultParam);
List<BlackGreyListDetails> detailsList = blackGreyListMapper.findBlackGreyListDetailsBy3YS(queryResultParam);
//List<BlackGreyListDetails> detailsList = blackGreyListMapper.findBlackGreyListDetails(queryDetailsParam);
List<BlackGreyListDetails> detailsList = blackGreyListMapper.findBlackGreyListDetailsBy3YS(queryDetailsParam);
if(detailsList!=null && detailsList.size()>0){
details_haveCount++;
log.info("手动导入明细表已存在, queryDetailsParam: {}", JSON.toJSONString(queryDetailsParam));
}else {
blackGreyList.add(blackGreyObj);
}
......@@ -1832,7 +1833,11 @@ public class BlackListToolsManagerServiceImpl implements IBlackListToolsManagerS
}
String resMsgTemp = "文件:%s 总共 %d条, 明细表已存在 %d条, 插入成功 %d条;";
return String.format(resMsgTemp, txtTableFile, contextList.size(), details_haveCount, saveOkCount);
String resultMsg = String.format(resMsgTemp, txtTableFile, contextList.size(), details_haveCount, saveOkCount);
log.info("importBlackGrey黑灰名单导入结束, txtTableFile: {} , resultMsg: {} ", txtTableFile, resultMsg);
return resultMsg;
}
}
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