| 
						
						
							
								
							
						
						
					 | 
					@ -22,6 +22,7 @@ import com.epmet.modules.partymember.dao.IcPartyMemberDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.modules.partymember.entity.IcPartyMemberEntity; | 
					 | 
					 | 
					import com.epmet.modules.partymember.entity.IcPartyMemberEntity; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgDTO; | 
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.form.PartyOrgTreeListDTO; | 
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.form.PartyOrgTreeListDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.result.BranchlistTreeDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.result.IcPartyOrgTreeDTO; | 
					 | 
					 | 
					import com.epmet.resi.partymember.dto.partyOrg.result.IcPartyOrgTreeDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -212,14 +213,16 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    public Result<IcPartyOrgTreeDTO> branchlist(TokenDto tokenDto) { | 
					 | 
					 | 
					    public Result<List<BranchlistTreeDTO>> branchlist(TokenDto tokenDto) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(),tokenDto.getUserId()); | 
					 | 
					 | 
					        CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(),tokenDto.getUserId()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        IcPartyOrgTreeDTO result = new IcPartyOrgTreeDTO(); | 
					 | 
					 | 
					        List<BranchlistTreeDTO> resultList = new ArrayList<>(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        result.setId(staffInfo.getAgencyId()); | 
					 | 
					 | 
					        BranchlistTreeDTO result = new BranchlistTreeDTO(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        result.setOrgPids(staffInfo.getAgencyPIds()); | 
					 | 
					 | 
					        result.setValue(staffInfo.getAgencyId()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        result.setPartyOrgName(staffInfo.getAgencyName()); | 
					 | 
					 | 
					//        result.setOrgPids(staffInfo.getAgencyPIds());
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        result.setLabel(staffInfo.getAgencyName()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        result.setChildren(baseDao.selectAllBranchByAgencyId(staffInfo.getAgencyId(),tokenDto.getCustomerId())); | 
					 | 
					 | 
					        result.setChildren(baseDao.selectAllBranchByAgencyId(staffInfo.getAgencyId(),tokenDto.getCustomerId())); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        return new Result<IcPartyOrgTreeDTO>().ok(result); | 
					 | 
					 | 
					        resultList.add(result); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        return new Result<List<BranchlistTreeDTO>>().ok(resultList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    /** | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |