瀏覽代碼

Merge remote-tracking branch 'origin/dev_1.1.0' into dev_1.1.0

caozixuan 1 年之前
父節點
當前提交
70fac58486

+ 2 - 2
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopQuickSearchServiceImpl.java

@@ -87,11 +87,11 @@ public class TBSopQuickSearchServiceImpl extends ServiceImpl<TBSopQuickSearchMap
             Integer count = Integer.parseInt(sysConfig.getConfigValue());
             TBSopQuickSearch tbSopQuickSearch = null;
             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::getUserId, sysUser.getId())
                         .eq(TBSopQuickSearch::getContentType, sopQuickSearchParam.getContentType()));
-                if (countDb.intValue() > count.intValue()) {
+                if (countDb > count.intValue()) {
                     throw ExceptionResultEnum.ERROR.exception(
                             "超过[" + sopQuickSearchParam.getContentType().getTitle() + "]最大条数" + count);
                 }