处理NullPoint

This commit is contained in:
TS-QD1 2023-04-12 09:54:20 +08:00
parent b059e566f0
commit 70507b31b8

View File

@ -311,6 +311,9 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
for (TrainingInstitutionWorkTypeDTO row : trainingInstitutionWorkTypeList) {
ApplyWorkTypeInstitutionDTO trainingInstitutionWorkTypeDTO = new ApplyWorkTypeInstitutionDTO();
InstitutionDTO institutionDTO = iInstitutionService.get(row.getInstitutionId());
if (institutionDTO == null) {
continue;
}
BeanUtils.copyProperties(trainingInstitutionWorkTypeDTO, institutionDTO);
//统计机构报名数量
List<String> states = new ArrayList<>();