Commit 962488df by Huang Linyu

add check null for user

parent ad768e75
......@@ -686,11 +686,15 @@ public class EventActivityOrderService extends
int communeNum =0,communeGuestNum=0;
for(CustomerInfoBean bean : eventActivityOrderBean.getCustomerInfoList()){
UserExt user = this.getUserExtDao().GetUserExtInfoByPhone(bean.getMobileNo());
if(user!=null){
if(checkIfCommuneUser(user)){
communeNum++;
}else{
communeGuestNum++;
}
}else{
communeGuestNum++;
}
}
if (eventActivityOrderItemBeans != null) {
......@@ -730,11 +734,15 @@ public class EventActivityOrderService extends
int communeNum =0,communeGuestNum=0;
for(CustomerInfoBean bean : eventActivityOrderBean.getCustomerInfoList()){
UserExt user = this.getUserExtDao().GetUserExtInfoByPhone(bean.getMobileNo());
if(user!=null){
if(checkIfCommuneUser(user)){
communeNum++;
}else{
communeGuestNum++;
}
}else{
communeGuestNum++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment