提交 834ebd2b 作者: 沈振路

复用源数据整理调整

上级 abfb010e
......@@ -126,6 +126,7 @@ public class CustomerFollowReplyServiceImpl extends ServiceImpl<CustomerFollowRe
}
referralEntity.setMaterialGraphicsId(entity.getId());
entity.setSourceUrl(referralEntity.getReferral());
entity.setContent("");
// 保存链接数据
if (ObjectUtil.isNull(referralEntity.getId())) {
referralEntityService.save(referralEntity);
......@@ -319,8 +320,10 @@ public class CustomerFollowReplyServiceImpl extends ServiceImpl<CustomerFollowRe
// 分配referral
for (CustomerFollowReply sourceEntity : sourceMaterialList) {
List<ReferralEntity> referralEntities = referralMap.get(sourceEntity.getId());
referralEntities = referralEntities.stream().sorted(Comparator.comparingInt(ReferralEntity::getSort)).collect(Collectors.toList());
sourceEntity.setReferralEntityList(referralEntities);
if (CollectionUtil.isNotEmpty(referralEntities)) {
referralEntities = referralEntities.stream().sorted(Comparator.comparingInt(ReferralEntity::getSort)).collect(Collectors.toList());
sourceEntity.setReferralEntityList(referralEntities);
}
}
return sourceMaterialList;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论