Sfoglia il codice sorgente

绩效改为星级

tags/24080901
PoffyZhang 1 anno fa
parent
commit
6077a1fffe
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. +5
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

+ 5
- 4
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java Vedi File

@@ -113,10 +113,11 @@ public class CockpitStatsStatisticsTask {
}

//如果结果不为空 就删除之前的 插入最新的数据
if(CollUtil.isEmpty(res)){
if(cockpitStatsService.remove(Wrappers.lambdaQuery(CockpitStats.class))){
cockpitStatsService.saveBatch(res);
}
if(CollUtil.isNotEmpty(res)){
List<CockpitStats> list = cockpitStatsService.list();
List<Long> ids = list.stream().map(CockpitStats::getId).collect(Collectors.toList());
cockpitStatsService.removeByIds(ids);
cockpitStatsService.saveBatch(res);
}

stopWatch.stop();


Loading…
Annulla
Salva