Browse Source

test

master
583641232@qq.com 1 year ago
parent
commit
7f1549a2fb
  1. 25
      cas-system/src/main/java/com/inscloudtech/analysiscenter/service/impl/AnalysisReportServiceImpl.java

25
cas-system/src/main/java/com/inscloudtech/analysiscenter/service/impl/AnalysisReportServiceImpl.java

@ -1105,20 +1105,15 @@ public class AnalysisReportServiceImpl implements IAnalysisReportService {
try { try {
Set<String> tpCounterpartyAccountSet = new HashSet<>(); Set<String> tpCounterpartyAccountSet = new HashSet<>();
Set<String> tpCounterpartyNameSet = 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); Integer personType = groupByLabel.get(tpCardHolderName);
@ -1136,11 +1131,7 @@ public class AnalysisReportServiceImpl implements IAnalysisReportService {
rst.add(indirectItem); rst.add(indirectItem);
} }
}catch (Exception e){ }catch (Exception e){
System.out.println("tpCardHolderName" + tpCardHolderName);
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException("报错中断");
} }
} }

Loading…
Cancel
Save