Commit 6c5f1c27 authored by 郝彦辉's avatar 郝彦辉

黑灰名单2020.04.23_02

parent cd983bf5
......@@ -780,7 +780,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
//批量 逾期已还清黑名单>>转灰名单
if(blackListResults!=null && blackListResults.size() >0 ){
return blackToGreyListParallel.runMain(blackListResults);
return blackToGreyListParallel.removeBlackToGrey(blackListResults);
}
return null;
}
......
......@@ -94,10 +94,12 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
String dateName = ConstantBlackGrey.PARAM.DF_YMD.format(Calendar.getInstance().getTime());
int list_size = blackResultList.size();
AtomicInteger update_count = new AtomicInteger();
AtomicInteger ok_count = new AtomicInteger();
AtomicInteger err_count = new AtomicInteger();
AtomicInteger type_11 = new AtomicInteger();
AtomicInteger update_count = new AtomicInteger();
int index = 0;
for (BlackGreyListResult blackResult : blackResultList) {
//blackResult>>r_id,uuid,black_type
......@@ -135,15 +137,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
});
}catch (EmptyResultDataAccessException e){
log.error("查询[现金贷]黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
log.error("查询(现金贷)黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
}finally {
log.info("查询[现金贷]黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
log.info("查询(现金贷)黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
}
//修改逾期天数
int update = updateOverdueDay(overdueDays, detailsVo, "现金贷");
if(update>0){
details_is_update = true;
update_count.getAndAdd(update);
}
}
......@@ -161,15 +164,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
});
}catch (EmptyResultDataAccessException e){
log.error("查询[白条]黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
log.error("查询(白条)黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
}finally {
log.info("查询[白条]黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
log.info("查询(白条)黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
}
//修改逾期天数
int update = updateOverdueDay(overdueDays, detailsVo, "白条");
if(update>0){
details_is_update = true;
update_count.getAndAdd(update);
}
}
......@@ -190,21 +194,22 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
});
}catch (EmptyResultDataAccessException e){
log.error("查询[VCC]黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
log.error("查询(VCC)黑名单逾期天数-查询acsdb异常, r_Id: {} , uuid: {} , id: {} e: {} ", rId, uuid, detailsVo.getId(), e.toString());
}finally {
log.info("查询[VCC]黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
log.info("查询(VCC)黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} ", rId, uuid, detailsVo.getId(), overdueDays!=null ? JSON.toJSONString(overdueDays):"null");
}
//修改逾期天数
int update = updateOverdueDay(overdueDays, detailsVo, "白条");
if(update>0){
details_is_update = true;
update_count.getAndAdd(update);
}
}
}else{
//if(detailsVo.getStatus()==0){
err_count.getAndIncrement();
optSet.add("otherType:"+blackResult.getRId());
optSet.add("otherType:"+rId);
writeLogByName(ConstantBlackGrey.PARAM.SAVELOGPATH + dateName + ConstantBlackGrey.PARAM.SEPA + "error.log", "更新逾期天数时,发现其他类别>>"+blackResult.getRId());
//}
}
......@@ -214,27 +219,28 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
if(details_is_update){
//更新结果表
updateResultUpdatedAt(blackResult.getRId());
update_count.getAndIncrement();
ok_count.getAndIncrement();
}
}else {
err_count.getAndIncrement();
optSet.add("notFind:"+blackResult.getRId());
optSet.add("notFindDeatils:"+rId);
writeLogByName(ConstantBlackGrey.PARAM.SAVELOGPATH + dateName + ConstantBlackGrey.PARAM.SEPA + "error.log", "更新逾期天数时,结果表没有发现details>>"+blackResult.getRId());
}
} catch (Exception e) {
optSet.add("ERR:" + blackResult.getRId());
err_count.getAndIncrement();
optSet.add("ERR:" + rId);
log.error(log_inf + "更新黑名单逾期天执行异常process() threadId:" + threadId, e);
}
}else {
err_count.getAndIncrement();
optSet.add("uuid空:" + rId);
log.error("查询黑名单逾期天-发现uuid为空, threadId_{} , r_Id: {} , uuid: {} , blackType: {} ", threadId, rId, uuid, blackResult.getBlackType());
}
}
log.info(log_inf + "更新黑名单逾期天数process处理结束CPU_{} , update_count: {} , type_11: {} , err_count: {} , this_list_size: {} , 耗时: {} ", threadId, update_count.get(), type_11.get(), err_count.get(), list_size, (System.currentTimeMillis()-start));
log.info(log_inf + "更新黑名单逾期天数process处理结束CPU_{} , this_list_size: {} , ok_count: {} , err_count: {} , type_11: {} , update_count: {} , 耗时: {} ", threadId, list_size, ok_count.get(), err_count.get(), type_11.get(), update_count.get(), (System.currentTimeMillis()-start));
}
......@@ -294,7 +300,7 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
return update;
}
} catch (Exception e) {
log.error("修改[" + log_inf + "]黑名单逾期天数-异常, r_Id: {} , id: {} , overdueDays: {} ", detailsVo.getRId(), detailsVo.getId(), overdueDays!=null?JSONObject.toJSONString(overdueDays):"null", e);
log.error("修改(" + log_inf + ")黑名单逾期天数-异常, r_Id: {} , id: {} , overdueDays: {} ", detailsVo.getRId(), detailsVo.getId(), overdueDays!=null?JSONObject.toJSONString(overdueDays):"null", e);
}
return 0;
}
......
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