Commit 9be2dd8f3845cde6e74dcd245ea31f8e3a381438
1 parent
edc8ae49
1.加入kafka传电子路单至数据中台
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/bsth/server_rs/schedule/real/ScheduleRealService.java
| ... | ... | @@ -346,7 +346,7 @@ public class ScheduleRealService implements InitializingBean { |
| 346 | 346 | ObjectMapper mapper = new ObjectMapper(); |
| 347 | 347 | String json = mapper.writeValueAsString(data); |
| 348 | 348 | logger.info(json); |
| 349 | - /*ListenableFuture<SendResult<String, String>> future = kafkaTemplate.send("PDGJ_JQDD", json); | |
| 349 | + ListenableFuture<SendResult<String, String>> future = kafkaTemplate.send("PDGJ_JQDD", json); | |
| 350 | 350 | future.addCallback(new ListenableFutureCallback<SendResult<String, String>>() { |
| 351 | 351 | |
| 352 | 352 | @Override |
| ... | ... | @@ -358,7 +358,7 @@ public class ScheduleRealService implements InitializingBean { |
| 358 | 358 | public void onFailure(Throwable ex) { |
| 359 | 359 | logger.error("kafka发送电子路单异常", ex); |
| 360 | 360 | } |
| 361 | - });*/ | |
| 361 | + }); | |
| 362 | 362 | } |
| 363 | 363 | } catch (Exception e) { |
| 364 | 364 | logger.error("kafka发电子路单调度异常", e); | ... | ... |