Commit 1e576c92 authored by 廖旭伟's avatar 廖旭伟

事项材料推荐bug修改

parent 86ddeb52
...@@ -108,6 +108,9 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -108,6 +108,9 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
if(StringUtils.isEmpty(entity.getTemplatePath())){ if(StringUtils.isEmpty(entity.getTemplatePath())){
throw new AppException("样表模板地址不能为空"); throw new AppException("样表模板地址不能为空");
} }
entity.setTotal(0);
entity.setSort(0);
entity.setIsRecommend(0);
//生成样表预览图片 //生成样表预览图片
String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/"; String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/";
String samplePath = rootPath + entity.getSamplePath(); String samplePath = rootPath + entity.getSamplePath();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment