不要用foreac 报错
不要用for int (会改变循环次数)
Iterator<WebserviceMessage> returnList_ = returnList.iterator();
while(returnList_.hasNext()) {
WebserviceMessage webserviceMessage_=returnList_.next();
WebserviceReadMessage webserviceReadMessage=webserviceReadMessageService.findByMessageId(webserviceMessage_.getId());
if(webserviceReadMessage.getRUserId()!=null &&webserviceReadMessage.getRUserId().length()>0) {
if(webserviceReadMessage.getRUserId().contains(",")) {
String[] arr=webserviceReadMessage.getRUserId().split(",");
for (String str : arr) {
if(webservicesUser.getId().equals(str)) {
returnList_.remove();
notcall=false;
}
}
}else {
if(webservicesUser.getId().equals(webserviceReadMessage.getRUserId())) {
returnList_.remove();
notcall=false;
}
}
}
}