List<IllegaVPRRecord> tempList=vPRRecordDAO.queryIllegaVPRRecordListToNotice(startTime, endTime);
List<String> carNumberList = new ArrayList<String>();
for (IllegaVPRRecord temp : tempList)
{
String notice = creatContent(temp);
carNumberList.add(temp.getCarNum());
boolean flag = true;//是否重复的标识,为真:表示不重复
for(int i=0;i<carNumberList.size()-1;i++)
{
if(carNumberList.get(i).equals(temp.getCarNum()))
{
flag = false;//为假:表示重复
break;
}
}
if(flag)
{
content.append(notice);
}
|