提交 3e13277f 作者: 沈振路

延时客服复用不copy链接

上级 dbb922d3
......@@ -395,7 +395,7 @@ public class CustomerServiceCommonAsyncComponent {
CustomerGraphicsDelay targetCustomerGraphics = new CustomerGraphicsDelay();
List<ReferralEntity> targetReferralEntityList = new ArrayList<>();
BeanUtil.copyProperties(sourceGraphics, targetCustomerGraphics);
BeanUtil.copyProperties(sourceGraphics, targetCustomerGraphics, "sourceUrl");
long mainId = snowflakeComponent.snowflakeId();
targetCustomerGraphics.setId(mainId);
targetCustomerGraphics.setAuthorizerInfo(targetAuthInfo);
......@@ -413,7 +413,11 @@ public class CustomerServiceCommonAsyncComponent {
for (ReferralEntity sourceReferralEntity : sourceReferralList) {
// 生成新的链接数据
ReferralEntity targetReferralEntity = new ReferralEntity();
BeanUtil.copyProperties(sourceReferralEntity, targetReferralEntity);
BeanUtil.copyProperties(sourceReferralEntity, targetReferralEntity, "referral");
if (sourceReferralEntity.getNewsType().equals(-1)) {
// 自定义链接延用链接
targetReferralEntity.setReferral(sourceReferralEntity.getReferral());
}
// 重新生成链接主键id
targetReferralEntity.setId(snowflakeComponent.snowflakeId());
targetReferralEntity.setMaterialGraphicsId(mainId);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论