提交 280a8ae9 作者: gh

Merge remote-tracking branch 'origin/master'

...@@ -86,6 +86,16 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi ...@@ -86,6 +86,16 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
@Override @Override
public BaseResult insertCustomerDelay(CustomerDelaySaveDTO saveDto) { public BaseResult insertCustomerDelay(CustomerDelaySaveDTO saveDto) {
StringBuilder builder = new StringBuilder();
if (StringUtils.isBlank(saveDto.getName())) {
builder.append("请填写标题");
}
if (ObjectUtil.isNull(saveDto.getTimeInterval())) {
builder.append(StringUtils.isBlank(builder) ? "请填写时间" : "、时间");
}
if (StringUtils.isNotBlank(builder)) {
return new GenericsResult<>(false, builder.toString());
}
boolean isCreate = false; boolean isCreate = false;
CustomerGraphicsDelay customerGraphicsDelay = new CustomerGraphicsDelay(); CustomerGraphicsDelay customerGraphicsDelay = new CustomerGraphicsDelay();
...@@ -135,6 +145,9 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi ...@@ -135,6 +145,9 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
return new BaseResult().error("新增/更新 主体数据异常"); return new BaseResult().error("新增/更新 主体数据异常");
} }
String storeTypeName = kanbanCommonMapper.getStoreTypeNameByAppId(customerGraphicsDelay.getAppId());
referralEntity.setStoreTypeName(storeTypeName);
boolean referralResult = referralEntityService.saveOrUpdate(referralEntity); boolean referralResult = referralEntityService.saveOrUpdate(referralEntity);
if (!referralResult) { if (!referralResult) {
return new BaseResult().error("新增/更新 链接数据异常"); return new BaseResult().error("新增/更新 链接数据异常");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论