Commit 962488df by Huang Linyu

add check null for user

parent ad768e75
......@@ -686,8 +686,12 @@ public class EventActivityOrderService extends
int communeNum =0,communeGuestNum=0;
for(CustomerInfoBean bean : eventActivityOrderBean.getCustomerInfoList()){
UserExt user = this.getUserExtDao().GetUserExtInfoByPhone(bean.getMobileNo());
if(checkIfCommuneUser(user)){
communeNum++;
if(user!=null){
if(checkIfCommuneUser(user)){
communeNum++;
}else{
communeGuestNum++;
}
}else{
communeGuestNum++;
}
......@@ -730,8 +734,12 @@ public class EventActivityOrderService extends
int communeNum =0,communeGuestNum=0;
for(CustomerInfoBean bean : eventActivityOrderBean.getCustomerInfoList()){
UserExt user = this.getUserExtDao().GetUserExtInfoByPhone(bean.getMobileNo());
if(checkIfCommuneUser(user)){
communeNum++;
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