提交 936bfbda 作者: 沈振路

链接name

上级 5be343a8
......@@ -565,6 +565,9 @@ public class CustomerServiceCommonAsyncComponent {
throw new RuntimeException("无法获取链接类型");
}
// 替换共用字段
if (StringUtils.isBlank(referralEntity.getStoreTypeName())) {
referralEntity.setStoreTypeName("");
}
name = name.replace("{newsType}", newsTypeName).replace("{accountNickName}", authInfoVo.getAccountName())
.replace("{storeType}", referralEntity.getStoreTypeName()).replace("{currentDate}", dateStr);
if (newsType.equals(CustomerCommonConstant.BOOK_NEWS_TYPE)) {
......@@ -577,7 +580,7 @@ public class CustomerServiceCommonAsyncComponent {
referralEntity.setTemplateId(tempId);
}
long suffix = System.currentTimeMillis() % 100000;
referralEntity.setName(name + suffix);
referralEntity.setName(name + "-" + suffix);
}
referralEntity.setInfoId(authInfoVo.getId());
LOCAL_LOG.info("获取链接, 参数: {}", referralEntity);
......
......@@ -47,6 +47,16 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
@Override
public GenericsResult<String> insertCustomerMessage(CustomerMessageTextSaveDTO saveDto) {
StringBuilder builder = new StringBuilder();
if (StringUtils.isBlank(saveDto.getName())) {
builder.append("请填写标题");
}
if (ObjectUtil.isNull(saveDto.getPostTime())) {
builder.append(StringUtils.isBlank(builder) ? "请填写发送时间" : "、发送时间");
}
if (StringUtils.isNotBlank(builder)) {
return new GenericsResult<>(false, builder.toString());
}
// 主体数据
LOCAL_LOG.info("处理主体数据");
CustomerGraphics customerGraphics = new CustomerGraphics();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论