Commit 323bc38f by zhouhaibao

[+]修改二手车群变更回调

1 parent c3f785e5
......@@ -588,6 +588,8 @@ public class CustomerBaseService {
List<CustomerBaseRelation> updatelist = customerBaseRelations.stream().filter(index -> list.contains(index)).collect(Collectors.toList());
List<CustomerBaseRelation> deletelist = list.stream().filter(index -> (index.getDelFlag() == null || index.getDelFlag() != -1)
&& !customerBaseRelations.contains(index)).collect(Collectors.toList());
List<CustomerBaseRelation> resetAddlist = customerBaseRelations.stream().filter(index -> list.contains(index) && index.getDelFlag() == -1).collect(Collectors.toList());
if (!CollectionUtils.isEmpty(addlist)) {
log.info("有客户入群:{}", addlist);
customerBaseRelationService.insertList(addlist);
......@@ -601,7 +603,10 @@ public class CustomerBaseService {
customerBaseRelationService.updatelist(updatelist);
reportCustomerJoinGroupType(request, updatelist);
handleCustomerGroupMemberChange(request, updatelist, 1);
}
if (!CollectionUtils.isEmpty(resetAddlist)){
log.info("有客户重新入群:{}", resetAddlist);
handleCustomerGroupMemberChange(request, resetAddlist, 1);
}
if (!CollectionUtils.isEmpty(deletelist)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!