Commit fd7f1dff by 杨林龙

优化车辆列表导入,同步老E盾设备号

1 parent b0836c96
......@@ -109,8 +109,6 @@ public class VehicleInfoImportListener extends AnalysisEventListener<VehicleInfo
@Override
public void invoke(VehicleInfoImport vehicleInfoImport, AnalysisContext analysisContext) {
list.add(vehicleInfoImport);
// 同步老E盾设备号到新E盾
deviceService.checkSnLocalAndRemote(vehicleInfoImport.getSn());
// 达到BATCH_COUNT了,需要去存储一次数据库,防止数据几万条数据在内存,容易OOM
if (list.size() >= BATCH_SUM_COUNT) {
list.clear();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!