| | |
| | | import java.util.Date; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description |
| | |
| | | |
| | | @Resource |
| | | private PledgeContractService pledgeContractService; |
| | | |
| | | |
| | | @Resource |
| | | private PledgeContractDepotService pledgeContractDepotService; |
| | | |
| | | /** |
| | | * 获取省及下属市州集合 |
| | |
| | | for (Dept dept : depotList) { |
| | | Boolean isPledge = false; |
| | | for (PledgeContract pledgeContract : pledgeContractList) { |
| | | if( dept.getId().equals(pledgeContract.getPledgeDept())){ |
| | | IgdsBaseParam param = new IgdsBaseParam(); |
| | | param.setParentId(pledgeContract.getId()); |
| | | List<PledgeContractDepot> pledgeContractDepots = pledgeContractDepotService.listAll(param); |
| | | if (null == pledgeContractDepots || pledgeContractDepots.isEmpty()){ |
| | | continue; |
| | | } |
| | | //找到pledgeContractDepots中的deptId集合,并去重 |
| | | List<String> deptIdList = pledgeContractDepots.stream().map(PledgeContractDepot::getPledgeDept).distinct().collect(Collectors.toList()); |
| | | if( deptIdList.contains(dept.getId())){ |
| | | //从list中找到当前质押银行的数据 |
| | | DicArea pledgeBank = null; |
| | | int indexBank = -1; |
| | |
| | | areaChildren.set(indexBank,pledgeBank); |
| | | isPledge=true; |
| | | break; |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | if(!isPledge){ |
| | | DicArea deptDic = new DicArea(); |