Commit 5807c333 authored by 赵啸非's avatar 赵啸非

添加公共庫

parent c8ef4948
...@@ -58,19 +58,19 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter ...@@ -58,19 +58,19 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
this.validData(entity, context); this.validData(entity, context);
} }
@Override // @Override
protected void removeBefore(Long[] ids, Context context) throws AppException { // protected void removeBefore(Long[] ids, Context context) throws AppException {
List<MatterEntity> queryList = this.get(ids, context); // List<MatterEntity> queryList = this.get(ids, context);
if (CollectionUtils.isNotEmpty(queryList)) { // if (CollectionUtils.isNotEmpty(queryList)) {
int recommendCount = paramService.getParamIntValue(ParamKey.MATTER_RECOMMEND_COUNT); // int recommendCount = paramService.getParamIntValue(ParamKey.MATTER_RECOMMEND_COUNT);
for (MatterEntity matterEntity : queryList) { // for (MatterEntity matterEntity : queryList) {
if (matterEntity.getIsRecommend() == 1) { // if (matterEntity.getIsRecommend() == 1) {
recommendCount--; // recommendCount--;
} // }
} // }
paramService.setValueByKey(ParamKey.MATTER_RECOMMEND_COUNT, String.valueOf(recommendCount)); // paramService.setValueByKey(ParamKey.MATTER_RECOMMEND_COUNT, String.valueOf(recommendCount));
} // }
} // }
@Override @Override
protected void findAfter(MatterEntity entity, PageInfo pageInfo, Context context, List<MatterEntity> list) throws AppException { protected void findAfter(MatterEntity entity, PageInfo pageInfo, Context context, List<MatterEntity> list) throws AppException {
......
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