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

添加公共庫

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