提交 38050307 作者: 沈振路

图文更新获取链接

上级 6f6942be
...@@ -97,13 +97,11 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi ...@@ -97,13 +97,11 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
return new GenericsResult<>(false, builder.toString()); return new GenericsResult<>(false, builder.toString());
} }
boolean isCreate = false;
CustomerGraphicsDelay customerGraphicsDelay = new CustomerGraphicsDelay(); CustomerGraphicsDelay customerGraphicsDelay = new CustomerGraphicsDelay();
BeanUtil.copyProperties(saveDto, customerGraphicsDelay); BeanUtil.copyProperties(saveDto, customerGraphicsDelay);
// 初始化操作信息 // 初始化操作信息
customerGraphicsDelay.initOperateInfo(tokenManager.getUserIdFromToken(), ObjectUtil.isNull(saveDto.getId())); customerGraphicsDelay.initOperateInfo(tokenManager.getUserIdFromToken(), ObjectUtil.isNull(saveDto.getId()));
if (ObjectUtil.isNull(customerGraphicsDelay.getId())) { if (ObjectUtil.isNull(customerGraphicsDelay.getId())) {
isCreate = true;
long id = snowflakeComponent.snowflakeId(); long id = snowflakeComponent.snowflakeId();
localLog.info("是新增, 新生成ID: {}", id); localLog.info("是新增, 新生成ID: {}", id);
customerGraphicsDelay.setId(id); customerGraphicsDelay.setId(id);
...@@ -115,7 +113,7 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi ...@@ -115,7 +113,7 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
referralEntity.setMaterialGraphicsId(customerGraphicsDelay.getId()); referralEntity.setMaterialGraphicsId(customerGraphicsDelay.getId());
// 非自定义获取链接 // 非自定义获取链接
if (isCreate && !referralEntity.getNewsType().equals(-1)) { if (!referralEntity.getNewsType().equals(-1)) {
try { try {
customerGraphicsDelay.setSendStatus(CustomerCommonConstant.SEND_STATUS_LINK_GETTING); customerGraphicsDelay.setSendStatus(CustomerCommonConstant.SEND_STATUS_LINK_GETTING);
localLog.info("准备获取链接"); localLog.info("准备获取链接");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论