处理空指针
This commit is contained in:
@ -128,12 +128,14 @@ public class GroupBuyCouponServiceImpl implements GroupBuyCouponService {
|
||||
response.getData().getCertificates().forEach(certificate -> {
|
||||
productIdMap.put("dyOrderId",String.valueOf(certificate.getCertificateId()));
|
||||
productIdMap.put("dyProductId", String.valueOf(certificate.getSku().getSkuId()));
|
||||
if( certificate.getReserveInfo().getOrderReserveUserInfoList().size()>0){
|
||||
certificate.getReserveInfo().getOrderReserveUserInfoList().forEach(orderReserveUserInfo -> {
|
||||
String phoneNumber = orderReserveUserInfo.getPhone();
|
||||
if (phoneNumber != null) {
|
||||
phone.set(phoneNumber);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
String finalPhone = phone.get();
|
||||
|
||||
Reference in New Issue
Block a user