Commit 07265c75 authored by 赵啸非's avatar 赵啸非

修改缓存刷新

parent ed4b9099
Pipeline #2719 failed with stages
...@@ -151,7 +151,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -151,7 +151,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
@Override @Override
protected void saveBefore(MatterDatumEntity entity, Context context) throws AppException { protected void saveBefore(MatterDatumEntity entity, Context context) throws AppException {
super.saveBefore(entity, context); super.saveBefore(entity, context);
if (StringUtils.isEmpty(entity.getFileUrl())) { /* if (StringUtils.isEmpty(entity.getFileUrl())) {
throw new AppException("填单附件不能为空"); throw new AppException("填单附件不能为空");
} }
if (StringUtils.isEmpty(entity.getSamplePath())) { if (StringUtils.isEmpty(entity.getSamplePath())) {
...@@ -159,7 +159,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -159,7 +159,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
} }
if (StringUtils.isEmpty(entity.getTemplatePath())) { if (StringUtils.isEmpty(entity.getTemplatePath())) {
throw new AppException("样表模板地址不能为空"); throw new AppException("样表模板地址不能为空");
} }*/
//校验材料名是否重复 //校验材料名是否重复
int count = this.count(new MatterDatumQuery().materialName(entity.getMaterialName()), context); int count = this.count(new MatterDatumQuery().materialName(entity.getMaterialName()), context);
if (count > 0) { if (count > 0) {
......
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