提交 4d2c4269 作者: 沈振路

延时客服复用时不copy操作人和时间

上级 0b2e005b
...@@ -395,7 +395,7 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -395,7 +395,7 @@ public class CustomerServiceCommonAsyncComponent {
CustomerGraphicsDelay targetCustomerGraphics = new CustomerGraphicsDelay(); CustomerGraphicsDelay targetCustomerGraphics = new CustomerGraphicsDelay();
List<ReferralEntity> targetReferralEntityList = new ArrayList<>(); List<ReferralEntity> targetReferralEntityList = new ArrayList<>();
BeanUtil.copyProperties(sourceGraphics, targetCustomerGraphics, "sourceUrl", "createUser", "gmtCreate", "modifiedUser", "gmtModified"); BeanUtil.copyProperties(sourceGraphics, targetCustomerGraphics, "sourceUrl");
long mainId = snowflakeComponent.snowflakeId(); long mainId = snowflakeComponent.snowflakeId();
targetCustomerGraphics.setId(mainId); targetCustomerGraphics.setId(mainId);
targetCustomerGraphics.setAuthorizerInfo(targetAuthInfo); targetCustomerGraphics.setAuthorizerInfo(targetAuthInfo);
......
...@@ -258,8 +258,10 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi ...@@ -258,8 +258,10 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
String accountId = sourceAuthInfo.getAccountId(); String accountId = sourceAuthInfo.getAccountId();
localLog.info("原始accountId: {}", accountId); localLog.info("原始accountId: {}", accountId);
Long userId = tokenManager.getUserIdFromToken();
// 找到号下面的所有的客服素材 // 找到号下面的所有的客服素材
List<CustomerGraphicsDelay> sourceCustomerList = super.list(new QueryWrapper<CustomerGraphicsDelay>().eq("app_id", appId)); List<CustomerGraphicsDelay> sourceCustomerList = super.list(new QueryWrapper<CustomerGraphicsDelay>().eq("app_id", appId));
sourceCustomerList.forEach(item -> item.initOperateInfo(userId, true));
List<Long> sourceMainIdList = sourceCustomerList.stream().map(CustomerGraphicsDelay::getId).collect(Collectors.toList()); List<Long> sourceMainIdList = sourceCustomerList.stream().map(CustomerGraphicsDelay::getId).collect(Collectors.toList());
// 获取原始链接素材 图文只有一条、文本有多条 // 获取原始链接素材 图文只有一条、文本有多条
List<ReferralEntity> referralEntityList = referralEntityService.list(new QueryWrapper<ReferralEntity>().in("material_graphics_id", sourceMainIdList).orderByAsc("gmt_create").orderByAsc("sort")); List<ReferralEntity> referralEntityList = referralEntityService.list(new QueryWrapper<ReferralEntity>().in("material_graphics_id", sourceMainIdList).orderByAsc("gmt_create").orderByAsc("sort"));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论