|
|
@ -1105,20 +1105,15 @@ public class AnalysisReportServiceImpl implements IAnalysisReportService { |
|
|
|
try { |
|
|
|
Set<String> tpCounterpartyAccountSet = new HashSet<>(); |
|
|
|
Set<String> tpCounterpartyNameSet = new HashSet<>(); |
|
|
|
for (BankStatement bankStatement : bsList) { |
|
|
|
try { |
|
|
|
if(StrUtil.isNotEmpty(bankStatement.getCounterpartyAccount())){ |
|
|
|
tpCounterpartyAccountSet.add(bankStatement.getCounterpartyAccount()); |
|
|
|
} |
|
|
|
if(StrUtil.isNotEmpty(bankStatement.getCounterpartyName())){ |
|
|
|
tpCounterpartyNameSet.add(bankStatement.getCounterpartyName()); |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
System.out.println("bankStatement = " + JSONUtil.toJsonStr(bankStatement)); |
|
|
|
} |
|
|
|
|
|
|
|
bsList.stream().forEach(item ->{ |
|
|
|
if(ObjUtil.isNotNull(item) && StrUtil.isNotEmpty(item.getCounterpartyAccount())){ |
|
|
|
tpCounterpartyAccountSet.add(item.getCounterpartyAccount()); |
|
|
|
} |
|
|
|
|
|
|
|
if(ObjUtil.isNotNull(item) && StrUtil.isNotEmpty(item.getCounterpartyName())){ |
|
|
|
tpCounterpartyNameSet.add(item.getCounterpartyName()); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//括内部人,也不包括自己。比如敖云松的报告,就不包括内部人藏美芳,因为他们是同事、必然是间接关系(有共同的交易对象即公司给他们发工资), |
|
|
|
Integer personType = groupByLabel.get(tpCardHolderName); |
|
|
@ -1136,11 +1131,7 @@ public class AnalysisReportServiceImpl implements IAnalysisReportService { |
|
|
|
rst.add(indirectItem); |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
System.out.println("tpCardHolderName" + tpCardHolderName); |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
throw new RuntimeException("报错中断"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|