Commit 8270c357 authored by liuyuanjun's avatar liuyuanjun

修改外链新增逻辑

parent 4e4087d6
......@@ -79,7 +79,7 @@ public class BExternalLinkServiceImpl implements BExternalLinkService {
UserUtil.setCurrentPersistOperation(bExternalLink);
//查询外链是否大于等于10个,大于等于十个不允许添加
int countBanner = bExternalLinkRepository.selectCountExternalLink(bExternalLink.getCorpId());
if(countBanner >= 10){
if(countBanner >= 15){
throw new ServiceException(ResultServiceEnums.NOT_MORE_COUNT);
}
//查询最大排序值+1后放入外链中
......
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