if(illegalInfoList != null && !illegalInfoList.isEmpty()){
out:for(Illegal illegalInfo : illegalInfoList){//违章记录表中数据在违章信息列表中是否存在
for(IllegalLists illegal : illegalLists){
if(UtilTimeFormatter.ymdhmsCompareTo(UtilTimeFormatter.getTimeToYMDHMS(illegalInfo.getIllegaldate()), illegal.getDate())){//违章时间是否相同
continue out;//执行此操作时候跳到上层循环里
}
}
ids.add(illegalInfo.getId());
}
if(!ids.isEmpty()){
illegalTaskMapper.updateOrderIllegalStatus1(ids);
serviceEventMapper.updateServiceEventResult(ids);//更新客服违章记录表
}
}
转载于:https://www.cnblogs.com/cuijinlong/p/6419596.html