Commit 2003be6b authored by 赵啸非's avatar 赵啸非

添加热门事项

parent 04955974
......@@ -289,7 +289,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
for (MatterEntity matterEntity : matterEntities) {
recommendCount += this.count(new MatterDatumQuery().matterId(matterEntity.getId()).isRecommend(YesNoEnum.YES.getValue()), context);
}
if (matterDatumEntity.getIsRecommend() == YesNoEnum.NO.getValue()) {
if (!ObjectUtils.isEmpty(matterDatumEntity.getIsRecommend() )&&matterDatumEntity.getIsRecommend() == YesNoEnum.NO.getValue()) {
if (recommendCount >= GlobalSysInfo.getParamIntValue(Constant.PARAMS_RECOMMEND_COUNT, 7)) {
throw new 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