|
@@ -83,10 +83,12 @@ public class AgencyServiceImpl implements AgencyService {
|
|
|
String userCompetence = userPO.get().getPersonalCompetence();
|
|
|
//将 userConpetence按逗号分搁
|
|
|
String compentence[] = userCompetence.split(",");//JKCS,JRXCE,KKXCS,WDXCS
|
|
|
- for (int i = 0; i < compentence.length; i++) {
|
|
|
- //查询对应code的测试类型的名称比如接口测试,兼用型测试等。
|
|
|
- Optional<TestTypePO> testTypePO = testTypeDao.findByCode(compentence[i]);
|
|
|
- agencyAbilities.add(testTypePO.get().getName());
|
|
|
+ if(compentence!=null) {
|
|
|
+ for (int i = 0; i < compentence.length; i++) {
|
|
|
+ //查询对应code的测试类型的名称比如接口测试,兼用型测试等。
|
|
|
+ Optional<TestTypePO> testTypePO = testTypeDao.findByCode(compentence[i]);
|
|
|
+ agencyAbilities.add(testTypePO.get().getName());
|
|
|
+ }
|
|
|
}
|
|
|
EvaluationAgencyVO agencyVO = new EvaluationAgencyVO(evaluationAgency);
|
|
|
agencyVO.setAuthStatus(evaluationAgency.getIsAuthentication());
|