|
@@ -26,6 +26,8 @@ import java.util.Optional;
|
|
|
public class UserRepo implements IUserRepo {
|
|
|
@Autowired
|
|
|
private EvaluationAgencyDao agencyDao;
|
|
|
+ @Autowired
|
|
|
+ private TestTypeDao testTypeDao;
|
|
|
|
|
|
@Autowired
|
|
|
private UserDao userDao;
|
|
@@ -78,6 +80,7 @@ public class UserRepo implements IUserRepo {
|
|
|
throw new UserNotExistException("用户不存在");
|
|
|
} else {
|
|
|
User user = getUserAndRoleAndPermissionByUserPO(userPOOptional.get());
|
|
|
+
|
|
|
return user;
|
|
|
}
|
|
|
}
|
|
@@ -409,7 +412,14 @@ public class UserRepo implements IUserRepo {
|
|
|
if (enterpriseAuthenticationPO != null) {
|
|
|
userResult.setEnterpriseAuthentication(Converter.convert(EnterpriseAuthentication.class, enterpriseAuthenticationPO));
|
|
|
}
|
|
|
-
|
|
|
+ //获取用户能力
|
|
|
+ String []abilities=userPO.getPersonalCompetence().split(",");
|
|
|
+ List<String> abailities= new ArrayList<>();
|
|
|
+ for(int i=0;i<abilities.length;i++){
|
|
|
+ String abilityName=testTypeDao.findByCode(abilities[i]).get().getName();
|
|
|
+ abailities.add(abilityName);
|
|
|
+ }
|
|
|
+ userResult.setPersonAbilities(abailities);
|
|
|
/*获取区域管理员信息*/
|
|
|
List<RegionalManagerToRegionalPO> regionalManagerToRegionalPOList = regionalManagerToRegionalDao.findByUserIdAndIsDeleted(userPO.getId(), DeletedStatus.isNotDeleted);
|
|
|
if (regionalManagerToRegionalPOList.size() > 0) {
|
|
@@ -438,6 +448,10 @@ public class UserRepo implements IUserRepo {
|
|
|
return userResult;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private User getEvaluationInfo(User userResult) {
|
|
|
/*获取测评机构信息*/
|
|
|
EvaluationAgencyPO evaluationAgencyPO = evaluationAgencyDao.findByUserIdAndIsDeleted(userResult.getId(), DeletedStatus.isNotDeleted);
|
|
@@ -455,6 +469,10 @@ public class UserRepo implements IUserRepo {
|
|
|
}
|
|
|
evaluationAgencyResult.setEvaluationAgencyAbilityList(evaluationAgencyAbilityList);
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/*获取测评机构资源*/
|
|
|
List<EvaluationAgencyResourcePO> evaluationAgencyResourcePOList = agencyResourceDao.findByEvaluationAgencyIdAndIsDeleted(evaluationAgencyResult.getId(), DeletedStatus.isNotDeleted);
|
|
|
List<EvaluationAgencyResource> evaluationAgencyResourceList = new ArrayList<>();
|