|  | @@ -49,6 +49,12 @@ public class UserRepo implements IUserRepo {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private RegionalDao regionalDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private EvaluationAgencyResourceDao evaluationAgencyResourceDao;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private EvaluationAgencyAbilityDao evaluationAgencyAbilityDao;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      private Timestamp currentTime = new Timestamp(System.currentTimeMillis());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
	
		
			
				|  | @@ -215,6 +221,14 @@ public class UserRepo implements IUserRepo {
 | 
	
		
			
				|  |  |              EvaluationAgencyPO evaluationAgencyPO = Converter.convert(EvaluationAgencyPO.class, evaluationAgency);
 | 
	
		
			
				|  |  |              evaluationAgencyPO.setUserId(userPO.getId());
 | 
	
		
			
				|  |  |              evaluationAgencyDao.save(evaluationAgencyPO);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +//            // save测评机构资源
 | 
	
		
			
				|  |  | +//            EvaluationAgencyResource evaluationAgencyResource = evaluationAgency.getEvaluationAgencyResource();
 | 
	
		
			
				|  |  | +//            if(evaluationAgencyResource != null){
 | 
	
		
			
				|  |  | +//                EvaluationAgencyResourcePO evaluationAgencyResourcePO = Converter.convert(EvaluationAgencyResourcePO.class, evaluationAgencyResource);
 | 
	
		
			
				|  |  | +//                evaluationAgencyResourcePO.setEvaluationAgencyId(evaluationAgencyPO.getId());
 | 
	
		
			
				|  |  | +//                evaluationAgencyResourceDao.save(evaluationAgencyResourcePO);
 | 
	
		
			
				|  |  | +//            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return getByID(userPO.getId());
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -283,6 +297,24 @@ public class UserRepo implements IUserRepo {
 | 
	
		
			
				|  |  |          EvaluationAgencyPO evaluationAgencyPO = evaluationAgencyDao.findByUserId(userPO.getId());
 | 
	
		
			
				|  |  |          if(evaluationAgencyPO != null){
 | 
	
		
			
				|  |  |              EvaluationAgency evaluationAgencyResult = Converter.convert(EvaluationAgency.class, evaluationAgencyPO);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            /*获取测评机构能力*/
 | 
	
		
			
				|  |  | +            List<EvaluationAgencyAbilityPO> evaluationAgencyAbilityPOList = evaluationAgencyAbilityDao.findByEvaluationAgencyId(evaluationAgencyResult.getId());
 | 
	
		
			
				|  |  | +            List<EvaluationAgencyAbility> evaluationAgencyAbilityList = new ArrayList<>();
 | 
	
		
			
				|  |  | +            for(EvaluationAgencyAbilityPO evaluationAgencyAbilityPO : evaluationAgencyAbilityPOList){
 | 
	
		
			
				|  |  | +                EvaluationAgencyAbility evaluationAgencyAbility = Converter.convert(EvaluationAgencyAbility.class, evaluationAgencyAbilityPO);
 | 
	
		
			
				|  |  | +                evaluationAgencyAbilityList.add(evaluationAgencyAbility);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if(evaluationAgencyAbilityList.size() != 0){
 | 
	
		
			
				|  |  | +                evaluationAgencyResult.setEvaluationAgencyAbilityList(evaluationAgencyAbilityList);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            /*获取测评机构资源*/
 | 
	
		
			
				|  |  | +            EvaluationAgencyResourcePO evaluationAgencyResourcePO = evaluationAgencyResourceDao.findByEvaluationAgencyId(evaluationAgencyResult.getId());
 | 
	
		
			
				|  |  | +            if(evaluationAgencyResourcePO != null){
 | 
	
		
			
				|  |  | +                evaluationAgencyResult.setEvaluationAgencyResource(Converter.convert(EvaluationAgencyResource.class, evaluationAgencyResourcePO));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              userResult.setEvaluationAgency(evaluationAgencyResult);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 |