Commit 1c16cb10 authored by 赵啸非's avatar 赵啸非

修改配置文件1

parent 39f0ad1f
...@@ -333,9 +333,9 @@ public class MatterEntity extends MatterVo { ...@@ -333,9 +333,9 @@ public class MatterEntity extends MatterVo {
this.deptName = ""; this.deptName = "";
this.total = null; this.total = 0;
this.sort = null; this.sort = 0;
this.isRecommend = 0; this.isRecommend = 0;
......
...@@ -52,15 +52,6 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter ...@@ -52,15 +52,6 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
return params; return params;
} }
@Override
protected void saveBefore(MatterEntity entity, Context context) throws AppException {
entity.setTotal(0);
entity.setSort(0);
entity.setIsRecommend(0);
entity.setSource(MatterSourceEnum.MANUAL.getValue());
this.validData(entity, context);
}
@Override @Override
protected void updateBefore(MatterEntity entity, Context context) throws AppException { protected void updateBefore(MatterEntity entity, Context context) throws AppException {
entity.setIsRecommend(null); entity.setIsRecommend(null);
...@@ -138,13 +129,10 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter ...@@ -138,13 +129,10 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
matterEntity.setEnglishName(sheetMatterEntity.getEnglishName()); matterEntity.setEnglishName(sheetMatterEntity.getEnglishName());
matterEntity.setMatterNo(sheetMatterEntity.getMatterNo()); matterEntity.setMatterNo(sheetMatterEntity.getMatterNo());
matterEntity.setMatterFullName(sheetMatterEntity.getMatterName()); matterEntity.setMatterFullName(sheetMatterEntity.getMatterName());
matterEntity.setTotal(0);
matterEntity.setSort(0);
matterEntity.setIsRecommend(0);
matterEntity.setSource(MatterSourceEnum.AUTO.getValue()); matterEntity.setSource(MatterSourceEnum.AUTO.getValue());
matterEntity.setCreateUserId(this.getContextUserId(context)); matterEntity.setCreateUserId(this.getContextUserId(context));
matterEntity.setCreateTime(new Date()); matterEntity.setCreateTime(new Date());
this.save(siteMatterEntity, context); this.save(matterEntity, context);
return true; return true;
} }
return false; return false;
......
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