| | |
| | | |
| | | @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())); |