|
@@ -87,11 +87,11 @@ public class TBSopQuickSearchServiceImpl extends ServiceImpl<TBSopQuickSearchMap
|
|
Integer count = Integer.parseInt(sysConfig.getConfigValue());
|
|
Integer count = Integer.parseInt(sysConfig.getConfigValue());
|
|
TBSopQuickSearch tbSopQuickSearch = null;
|
|
TBSopQuickSearch tbSopQuickSearch = null;
|
|
if (Objects.isNull(sopQuickSearchParam.getId())) {//新增
|
|
if (Objects.isNull(sopQuickSearchParam.getId())) {//新增
|
|
- Integer countDb = this.count(new QueryWrapper<TBSopQuickSearch>().lambda()
|
|
|
|
|
|
+ int countDb = this.count(new QueryWrapper<TBSopQuickSearch>().lambda()
|
|
.eq(TBSopQuickSearch::getType, sopQuickSearchParam.getType())
|
|
.eq(TBSopQuickSearch::getType, sopQuickSearchParam.getType())
|
|
.eq(TBSopQuickSearch::getUserId, sysUser.getId())
|
|
.eq(TBSopQuickSearch::getUserId, sysUser.getId())
|
|
.eq(TBSopQuickSearch::getContentType, sopQuickSearchParam.getContentType()));
|
|
.eq(TBSopQuickSearch::getContentType, sopQuickSearchParam.getContentType()));
|
|
- if (countDb.intValue() > count.intValue()) {
|
|
|
|
|
|
+ if (countDb > count.intValue()) {
|
|
throw ExceptionResultEnum.ERROR.exception(
|
|
throw ExceptionResultEnum.ERROR.exception(
|
|
"超过[" + sopQuickSearchParam.getContentType().getTitle() + "]最大条数" + count);
|
|
"超过[" + sopQuickSearchParam.getContentType().getTitle() + "]最大条数" + count);
|
|
}
|
|
}
|