|  |  | 
 |  |  |             } | 
 |  |  |             if(list.size()>0){ | 
 |  |  |                 //插入门禁记录 | 
 |  |  |                 deviceEventMapper.insertBatchSomeColumn(list); | 
 |  |  |                 deviceEventMapper.insert(list); | 
 |  |  |             } | 
 |  |  |             if(delRetentionLis.size()>0){ | 
 |  |  |                 //先删除原有的在场人员(内部人员) | 
 |  |  | 
 |  |  |             } | 
 |  |  |             if(retentionList.size()>0){ | 
 |  |  |                 //再插入最新的在厂人员 | 
 |  |  |                 retentionMapper.insertBatchSomeColumn(retentionList); | 
 |  |  |                 retentionMapper.insert(retentionList); | 
 |  |  |             } | 
 |  |  |             log.error("【海康门禁事件推送】========成功======="); | 
 |  |  |         }catch (Exception e) { | 
 |  |  | 
 |  |  |             } | 
 |  |  |             if(list.size()>0){ | 
 |  |  |                 //插入门禁记录 | 
 |  |  |                 visitEventMapper.insertBatchSomeColumn(list); | 
 |  |  |                 visitEventMapper.insert(list); | 
 |  |  |             } | 
 |  |  |             if(delRetentionLis.size()>0){ | 
 |  |  |                 //先删除原有的在场人员(普通访客) | 
 |  |  | 
 |  |  |             } | 
 |  |  |             if(retentionList.size()>0){ | 
 |  |  |                 //再插入最新的在厂人员 | 
 |  |  |                 retentionMapper.insertBatchSomeColumn(retentionList); | 
 |  |  |                 retentionMapper.insert(retentionList); | 
 |  |  |             } | 
 |  |  |             log.error("【海康访客事件推送】========成功======="); | 
 |  |  |         }catch (Exception e){ | 
 |  |  | 
 |  |  |             } | 
 |  |  |             if(list.size()>0){ | 
 |  |  |                 //插入门禁记录 | 
 |  |  |                 carEventMapper.insertBatchSomeColumn(list); | 
 |  |  |                 carEventMapper.insert(list); | 
 |  |  |             } | 
 |  |  |             if(delRetentionList.size()>0){ | 
 |  |  |                 //先删除原有的在场人员(内部人员) | 
 |  |  | 
 |  |  |             } | 
 |  |  |             if(retentionList.size()>0){ | 
 |  |  |                 //再插入最新的在厂人员 | 
 |  |  |                 retentionMapper.insertBatchSomeColumn(retentionList); | 
 |  |  |                 retentionMapper.insert(retentionList); | 
 |  |  |             } | 
 |  |  |             log.error("【海康停车场事件推送】========成功======="); | 
 |  |  |         }catch (Exception e){ |