From 7c6fd1d806bec9791247ab84803420efe45ccd06 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期二, 29 四月 2025 21:32:43 +0800 Subject: [PATCH] 修改家谱中搜索时一页显示条数与实际不符 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSecretController.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSecretController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSecretController.java index 9b965a2..0a5892f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSecretController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSecretController.java @@ -151,7 +151,7 @@ { for (Long id: ids) { List<MemoBook> memoBookService1 = memoBookService.selectByIdAFid(id,2031L); - if (!memoBookService.removeByIds(memoBookService1)) + if (memoBookService1.size() != 0 && !memoBookService.removeByIds(memoBookService1)) return AjaxResult.error(); } if (! (zSecretDownloadService.deleteData(ids) && zSecretShareService.deleteByContentId(ids) ) ){ -- Gitblit v1.9.1