|
@@ -56,6 +56,8 @@ public class KafkaConsumerNeo4jV2 {
|
|
List<Map<String, Object>> listMap = CompanyUtils.map(records);
|
|
List<Map<String, Object>> listMap = CompanyUtils.map(records);
|
|
this.map.get(CompanyEnum.TopicType.PERSON_MERGE_V2.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.PERSON_MERGE_V2.CODE));
|
|
this.map.get(CompanyEnum.TopicType.PERSON_MERGE_V2.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.PERSON_MERGE_V2.CODE));
|
|
|
|
|
|
|
|
+ this.map.get(CompanyEnum.TopicType.BRANCH_RELATION.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.BRANCH_RELATION.CODE));
|
|
|
|
+
|
|
// this.map.get(CompanyEnum.TopicType.COMPANY_NODE.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.COMPANY_NODE.CODE));
|
|
// this.map.get(CompanyEnum.TopicType.COMPANY_NODE.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.COMPANY_NODE.CODE));
|
|
// this.map.get(CompanyEnum.TopicType.HOLDER_RELATION_V1.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.HOLDER_RELATION_V1.CODE));
|
|
// this.map.get(CompanyEnum.TopicType.HOLDER_RELATION_V1.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.HOLDER_RELATION_V1.CODE));
|
|
// this.map.get(CompanyEnum.TopicType.HOLDER_RELATION_V2.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.HOLDER_RELATION_V2.CODE));
|
|
// this.map.get(CompanyEnum.TopicType.HOLDER_RELATION_V2.VALUE).save(CompanyUtils.filterList(listMap, CompanyEnum.TopicType.HOLDER_RELATION_V2.CODE));
|
|
@@ -80,7 +82,7 @@ public class KafkaConsumerNeo4jV2 {
|
|
public ConsumerAwareListenerErrorHandler dealError() {
|
|
public ConsumerAwareListenerErrorHandler dealError() {
|
|
return (message, e, consumer) -> {
|
|
return (message, e, consumer) -> {
|
|
List<String> list = CompanyUtils.toMessage((List<ConsumerRecord>) message.getPayload());
|
|
List<String> list = CompanyUtils.toMessage((List<ConsumerRecord>) message.getPayload());
|
|
- if(isWindows()) return null;
|
|
|
|
|
|
+ if (isWindows()) return null;
|
|
for (String msg : list) {
|
|
for (String msg : list) {
|
|
kafkaProduce.produce(configConstant.topic_node_relation_union, msg);
|
|
kafkaProduce.produce(configConstant.topic_node_relation_union, msg);
|
|
}
|
|
}
|