Commit ebdb551f authored by zhoushiguang's avatar zhoushiguang

Merge remote-tracking branch 'origin/master'

parents 5a0b1afd d413b1e8
...@@ -28,7 +28,7 @@ public class CrossRidInfoCache implements CommandLineRunner { ...@@ -28,7 +28,7 @@ public class CrossRidInfoCache implements CommandLineRunner {
public static RidInfoEntity getStartRidInfoEntity(String startCrossId, Integer inDir) { public static RidInfoEntity getStartRidInfoEntity(String startCrossId, Integer inDir) {
for (RidInfoEntity ridInfoEntity : ridInfoEntityList) { for (RidInfoEntity ridInfoEntity : ridInfoEntityList) {
if (StringUtils.equalsIgnoreCase(startCrossId, ridInfoEntity.getStartCrossId()) && Objects.equals(inDir, Integer.parseInt(ridInfoEntity.getId()))) { if (StringUtils.equalsIgnoreCase(startCrossId, ridInfoEntity.getStartCrossId()) && Objects.equals(inDir, ridInfoEntity.getInDir())) {
return ridInfoEntity; return ridInfoEntity;
} }
} }
......
...@@ -663,9 +663,10 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService { ...@@ -663,9 +663,10 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService {
greenwaveHistPOS.add(greenwaveHistPO); greenwaveHistPOS.add(greenwaveHistPO);
greenwaveRealtimeMapper.deleteOne(greenWaveId); greenwaveRealtimeMapper.deleteOne(greenWaveId);
} }
}if (!CollectionUtils.isEmpty(greenwaveHistPOS)) {
greenwaveHistMapper.insertBatch(greenwaveHistPOS);
greenwaveRealtimeMapper.insertBatch(greenwaveRealtimePOS);
} }
greenwaveHistMapper.insertBatch(greenwaveHistPOS);
greenwaveRealtimeMapper.insertBatch(greenwaveRealtimePOS);
} }
} catch (Exception e) { } catch (Exception e) {
log.error("插入绿波实时历史表失败:", e); log.error("插入绿波实时历史表失败:", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment