linwe
2024-09-03 764d883b5ea3bdc06abbec548b6df0511e567978
src/main/java/org/springblade/modules/eCallEventTwo/controller/ECallEventTwoController.java
@@ -183,11 +183,16 @@
   @GetMapping("/synchronousData")
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "信息同步")
   @ApiOperation(value = "E呼基本信息入录同步到新E呼即办")
   public void synchronousData() {
      IECallEventService bean = SpringUtils.getBean(IECallEventService.class);
      List<ECallEventEntity> list = bean.list(Wrappers.<ECallEventEntity>lambdaQuery().eq(ECallEventEntity::getIsDeleted, 0));
      for (ECallEventEntity eCallEventEntity : list) {
         long count = eCallEventTwoService.count(Wrappers.<ECallEventTwoEntity>lambdaQuery()
            .eq(ECallEventTwoEntity::getOrderId, eCallEventEntity.getId()));
         if (count > 0) {
            continue;
         }
         ECallEventTwoEntity eCallEventTwoEntity = new ECallEventTwoEntity();
         eCallEventTwoEntity.setLocation(eCallEventEntity.getLocation());
         eCallEventTwoEntity.setSceneGeoLat(new BigDecimal(eCallEventEntity.getLat()));