firstTag为空的时候空指针

pull/451/head
starrysky 2019-11-12 13:58:36 +08:00
parent 3dc36c5cb4
commit 6734b773cf
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
customerInfoDTO.setFirstContactName(customerContact.getName());
}
}
if(StringUtils.isEmpty(customerInfoDTO.getFirstContactName())){
customerInfoDTO.setFirstContactName(customerContactList.get(0).getName());
customerInfoDTO.setFirstContactMobile(customerContactList.get(0).getMobile());
}
}
}
}